WindowsIdentity Members
.NET Framework 2.0
Represents a Windows user.
The following tables list the members exposed by the WindowsIdentity type.
| Name | Description | |
|---|---|---|
| WindowsIdentity | Overloaded. Initializes a new instance of the WindowsIdentity class. |
| Name | Description | |
|---|---|---|
| AuthenticationType | Gets the type of authentication used to identify the user. |
| Groups | Gets the groups the current Windows user belongs to. |
| ImpersonationLevel | Gets the impersonation level for the user. |
| IsAnonymous | Gets a value indicating whether the user account is identified as an anonymous account by the system. |
| IsAuthenticated | Gets a value indicating whether the user has been authenticated by Windows. |
| IsGuest | Gets a value indicating whether the user account is identified as a Guest account by the system. |
| IsSystem | Gets a value indicating whether the user account is identified as a System account by the system. |
| Name | Gets the user's Windows logon name. |
| Owner | Gets the security identifier (SID) for the token owner. |
| Token | Gets the Windows account token for the user. |
| User | Gets the security identifier (SID) for the user. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Dispose | Overloaded. Releases the resources used by the WindowsIdentity. |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GetAnonymous | Returns a WindowsIdentity object that represents an anonymous user. |
| GetCurrent | Overloaded. Returns a WindowsIdentity object that represents the current Windows user. |
| 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.) |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| Impersonate | Overloaded. Allows code to impersonate a different Windows user. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| Dispose | Overloaded. Releases the resources used by the WindowsIdentity. |
| 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.) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| System.Runtime.Serialization.IDeserializationCallback.OnDeserialization | Implements the ISerializable interface and is called back by the deserialization event when deserialization is complete. |
| System.Runtime.Serialization.ISerializable.GetObjectData | Sets the SerializationInfo object with the logical context information needed to recreate an instance of this execution context. |
Community Additions
ADD
Show: