This documentation is archived and is not being maintained.

WindowsIdentity.Token Property

Gets the Windows account token for the user.

[Visual Basic]
Public Overridable ReadOnly Property Token As IntPtr
[C#]
public virtual IntPtr Token {get;}
[C++]
public: __property virtual IntPtr get_Token();
[JScript]
public function get Token() : IntPtr;

Property Value

The handle of the access token associated with the current execution thread.

Remarks

The account token is usually retrieved through a call to unmanaged code, such as a call to the Win32 API LogonUser. For more information on calls to unmanaged code, see Consuming Unmanaged DLL Functions.

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: