WindowsIdentity Class Home
This page is specific to:.NET Framework Version:1.12.03.03.54.0
.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
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View