WebSecurity.CurrentUserName Property

Gets the user name for the current user.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

'Declaration
Public Shared ReadOnly Property CurrentUserName As String
	Get
'Usage
Dim value As String

value = WebSecurity.CurrentUserName

Property Value

Type: System.String
The name of the current user.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
Show: