Export (0) Print
Expand All

WindowsIdentity Members

WindowsIdentity overview

Public Constructors

public constructorWindowsIdentity Constructor Overloaded. Initializes a new instance of the WindowsIdentity class.

Public Properties

public propertyAuthenticationType Gets the type of authentication used to identify the user.
public propertyIsAnonymous Gets a value indicating whether the user account is identified as an anonymous account by the system.
public propertyIsAuthenticated Gets a value indicating whether the user has been authenticated by Windows.
public propertyIsGuest Gets a value indicating whether the user account is identified as a Guest account by the system.
public propertyIsSystem Gets a value indicating whether the user account is identified as a System account by the system.
public propertyName Gets the user's Windows logon name.
public propertyToken Gets the Windows account token for the user.

Public Methods

public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodstatic (Shared in Visual Basic)GetAnonymous Returns a WindowsIdentity object that represents an anonymous Windows user.
public methodstatic (Shared in Visual Basic)GetCurrent Returns a WindowsIdentity object that represents the current Windows user.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodImpersonate Overloaded. Allows code to impersonate a different Windows user.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Protected Methods

protected methodFinalize Overridden. Frees resources before the WindowsIdentity is reclaimed by the Garbage Collector.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

WindowsIdentity Class | System.Security.Principal Namespace

Show:
© 2014 Microsoft