WebSecurity.CurrentUserName Property

Gets the user name for the current user.

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

static function get CurrentUserName () : String

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: