WebSecurity Object
The IsCurrentUser() method compares a provided username with the logged in user's username.
| Parameter | Type | Description |
|---|---|---|
| userName | String | The user name to compare |
| Type | Description |
|---|---|
| Boolean | true if the userName parameter matches the logged in user, otherwise false |
Any access to the WebSecurity object throws an InvalidOperationException if:
| Name | Value |
|---|---|
| Namespace | WebMatrix.WebData |
| Assembly | WebMatrix.WebData.dll |
WebSecurity Object
Your message has been sent to W3Schools.