Export (0) Print
Expand All

WindowsIdentity Members

Represents a Windows user.

The following tables list the members exposed by the WindowsIdentity type.

  Name Description
Public method WindowsIdentity Overloaded. Initializes a new instance of the WindowsIdentity class.
Top

  Name Description
Public property AuthenticationType Gets the type of authentication used to identify the user.
Public property Groups Gets the groups the current Windows user belongs to.
Public property ImpersonationLevel Gets the impersonation level for the user.
Public property IsAnonymous Gets a value indicating whether the user account is identified as an anonymous account by the system.
Public property IsAuthenticated Gets a value indicating whether the user has been authenticated by Windows.
Public property IsGuest Gets a value indicating whether the user account is identified as a Guest account by the system.
Public property IsSystem Gets a value indicating whether the user account is identified as a System account by the system.
Public property Name Gets the user's Windows logon name.
Public property Owner Gets the security identifier (SID) for the token owner.
Public property Token Gets the Windows account token for the user.
Public property User Gets the security identifier (SID) for the user.
Top

(see also Protected Methods )
  Name Description
Public method Dispose Overloaded. Releases the resources used by the WindowsIdentity.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method Static GetAnonymous Returns a WindowsIdentity object that represents an anonymous user.
Public method Static GetCurrent Overloaded. Returns a WindowsIdentity object that represents the current Windows user.
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Impersonate Overloaded. Allows code to impersonate a different Windows user.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top

  Name Description
Protected method Dispose Overloaded. Releases the resources used by the WindowsIdentity.
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top

  Name Description
Explicit interface implementation Method System.Runtime.Serialization.IDeserializationCallback.OnDeserialization Implements the ISerializable interface and is called back by the deserialization event when deserialization is complete.
Explicit interface implementation Method System.Runtime.Serialization.ISerializable.GetObjectData Sets the SerializationInfo object with the logical context information needed to recreate an instance of this execution context.
Top

Community Additions

ADD
Show:
© 2014 Microsoft