Easy Tutorial
❮ Prop Webcontrol Hyperlink Text Prop Webcontrol Calendar Captionalign ❯

WebSecurity Property - CurrentUserName



Definition

The CurrentUserName property is the name of the current user in the user profile table of the WebSecurity database.


C# and VB Syntax


Example

Example C

Example VB


Remarks

The CurrentUserName property is read-only. It cannot be changed through code.


Errors and Exceptions

In the following cases, any access to the WebSecurity object will throw an InvalidOperationException:


Technical Data

Name Value
Namespace WebMatrix.WebData
Assembly WebMatrix.WebData.dll
❮ Prop Webcontrol Hyperlink Text Prop Webcontrol Calendar Captionalign ❯