This documentation is archived and is not being maintained.
WindowsIdentity.Name Property
.NET Framework 1.1
Gets the user's Windows logon name.
[Visual Basic] Public Overridable ReadOnly Property Name As String Implements _ IIdentity.Name [C#] public virtual string Name {get;} [C++] public: __property virtual String* get_Name(); [JScript] public function get Name() : String;
Property Value
The Windows logon name of the user on whose behalf the code is being run.
Implements
Remarks
The logon name is in the form DOMAIN\USERNAME.
Requirements
Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
WindowsIdentity Class | WindowsIdentity Members | System.Security.Principal Namespace
Show: