Method | Description | |
---|---|---|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
Impersonate ( string userName, string domainName, string password ) : void |
Impersonates the specified user account.
|
|
Impersonate ( string userName, string domainName, string password, LogonType logonType, LogonProvider logonProvider ) : void |
Impersonates the specified user account.
|
|
Impersonator ( ) : System |
Initializes a new instance of the Impersonator class.
|
|
Impersonator ( string userName, string domainName, string password ) : System |
Begins impersonation with the given credentials.
|
|
Impersonator ( string userName, string domainName, string password, LogonType logonType, LogonProvider logonProvider ) : System |
Begins impersonation with the given credentials, Logon type and Logon provider.
|
Method | Description | |
---|---|---|
UndoImpersonation ( ) : void |
Stops impersonation.
|
public Impersonate ( string userName, string domainName, string password ) : void | ||
userName | string | Name of the user. |
domainName | string | Name of the domain. |
password | string | The password. |
return | void |
public Impersonate ( string userName, string domainName, string password, LogonType logonType, LogonProvider logonProvider ) : void | ||
userName | string | Name of the user. |
domainName | string | Name of the domain. |
password | string | The password. |
logonType | LogonType | Type of the logon. |
logonProvider | LogonProvider | The logon provider. |
return | void |
public Impersonator ( string userName, string domainName, string password ) : System | ||
userName | string | Name of the user. |
domainName | string | Name of the domain. |
password | string | The password. |
return | System |
public Impersonator ( string userName, string domainName, string password, LogonType logonType, LogonProvider logonProvider ) : System | ||
userName | string | Name of the user. |
domainName | string | Name of the domain. |
password | string | The password. |
logonType | LogonType | Type of the logon. |
logonProvider | LogonProvider | The logon provider. |
return | System |