This documentation is archived and is not being maintained.
WindowsIdentity Members
.NET Framework 1.1
Public Constructors
WindowsIdentity Constructor | Overloaded. Initializes a new instance of the WindowsIdentity class. |
Public Properties
AuthenticationType | Gets the type of authentication used to identify 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. |
Token | Gets the Windows account token for the user. |
Public Methods
Equals (inherited from Object) | Overloaded. Determines whether two Object instances are equal. |
![]() GetAnonymous | Returns a WindowsIdentity object that represents an anonymous Windows user. |
![]() GetCurrent | Returns a WindowsIdentity object that represents the current Windows user. |
GetHashCode (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. |
GetType (inherited from Object) | Gets the Type of the current instance. |
Impersonate | Overloaded. Allows code to impersonate a different Windows user. |
ToString (inherited from Object) | Returns a String that represents the current Object. |
Protected Methods
Finalize | Overridden. Frees resources before the WindowsIdentity is reclaimed by the Garbage Collector.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |
See Also
Show:
