Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 1.1
.NET Framework
Reference
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
.NET Framework Class Library
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

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker