Impersonator Class |
public class Impersonator : IDisposable
The Impersonator type exposes the following members.
| Name | Description | |
|---|---|---|
| Impersonator | Constructor using the identity of the current user | |
| Impersonator(String, String, String) | Constructor performing a Windows logon with the given credentials |
| Name | Description | |
|---|---|---|
| CheckWindowsLogin | Check Windows credentials by performing a logon and return the resulting identity | |
| 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) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Login | Perform a Windows logon with the given credentials and set the Identity. An exception is thrown if the logon fails. | |
| Logout | Close the logon token and dispose the current identity | |
| 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 | |
|---|---|---|
| Identity | Windows identity of the impersonated user | |
| LOGON32_LOGON_INTERACTIVE | Interactive logon type for the LogonUser Windows API | |
| LOGON32_PROVIDER_DEFAULT | Default logon provider for the LogonUser Windows API |