This documentation is archived and is not being maintained.

IIdentity.Name Property

Gets the name of the current user.

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

Property Value

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


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.


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