Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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:
© 2015 Microsoft