This documentation is archived and is not being maintained.
WindowsIdentity Methods
Visual Studio 2010
The WindowsIdentity type exposes the following members.
| Name | Description | |
|---|---|---|
|
Dispose() | Releases all resources used by the WindowsIdentity. |
|
Dispose(Boolean) | Releases the unmanaged resources used by the WindowsIdentity and optionally releases the managed resources. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetAnonymous | Returns a WindowsIdentity object that represents an anonymous user. |
|
GetCurrent() | Returns a WindowsIdentity object that represents the current Windows user. |
|
GetCurrent(Boolean) | Returns a WindowsIdentity object that represents the Windows identity for either the thread or the process, depending on the value of the ifImpersonating parameter. |
|
GetCurrent(TokenAccessLevels) | Returns a WindowsIdentity object that represents the current Windows user, using the specified desired token access level. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
Impersonate() | Impersonates the user represented by the WindowsIdentity object. |
|
Impersonate(IntPtr) | Impersonates the user represented by the specified user token. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
IDeserializationCallback::OnDeserialization | Infrastructure. Implements the ISerializable interface and is called back by the deserialization event when deserialization is complete. |
|
ISerializable::GetObjectData | Infrastructure. Sets the SerializationInfo object with the logical context information needed to recreate an instance of this execution context. |
Show: