Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WindowsIdentity Class

Represents a Windows user.

For a list of all members of this type, see WindowsIdentity Members.

System.Object
   System.Security.Principal.WindowsIdentity

[Visual Basic]
<Serializable>
Public Class WindowsIdentity
   Implements IIdentity, ISerializable, IDeserializationCallback
[C#]
[Serializable]
public class WindowsIdentity : IIdentity, ISerializable,
   IDeserializationCallback
[C++]
[Serializable]
public __gc class WindowsIdentity : public IIdentity,
   ISerializable, IDeserializationCallback
[JScript]
public
   Serializable
class WindowsIdentity implements IIdentity, ISerializable,
   IDeserializationCallback

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

Call the GetCurrent method to create a WindowsIdentity object that represents the current user.

Requirements

Namespace: System.Security.Principal

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

Assembly: Mscorlib (in Mscorlib.dll)

See Also

WindowsIdentity Members | System.Security.Principal Namespace

Show:
© 2017 Microsoft