Export (0) Print
Expand All

IIdentity.Name Property

Gets the name of the current user.

[Visual Basic]
ReadOnly Property Name As String
[C#]
string Name {get;}
[C++]
__property String* get_Name();
[JScript]
function get Name() : String;

Property Value

The name of the user on whose behalf the code is running.

Remarks

The user name is passed to the common language runtime by the operating system or other authentication provider (such as ASP.NET).

Name is typically set to the empty string ("") for an unauthenticated entity, but can take other values.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IIdentity Interface | IIdentity Members | System.Security.Principal Namespace

Show:
© 2014 Microsoft