This documentation is archived and is not being maintained.
WindowsIdentity Members
Visual Studio 2008
Represents a Windows user.
The WindowsIdentity type exposes the following members.
| Name | Description | |
|---|---|---|
|
WindowsIdentity | Overloaded. Initializes a new instance of the WindowsIdentity class. |
| Name | Description | |
|---|---|---|
|
Dispose | Overloaded. Releases the resources used by the WindowsIdentity. |
|
Equals | 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 | Overloaded. Returns a WindowsIdentity object that represents the current Windows user. |
|
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 | Overloaded. Allows code to impersonate a different Windows user. |
|
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 | |
|---|---|---|
|
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. |
| Name | Description | |
|---|---|---|
|
ISerializable::GetObjectData | Infrastructure. Sets the SerializationInfo object with the logical context information needed to recreate an instance of this execution context. |
|
IDeserializationCallback::OnDeserialization | Infrastructure. Implements the ISerializable interface and is called back by the deserialization event when deserialization is complete. |
Show: