Method | Description | |
---|---|---|
Dispose ( ) : void | ||
Impersonate ( string userName, string domain, string password ) : bool | ||
RunAs ( string userName, string domain, string password, System.Action action ) : bool | ||
Undo ( ) : void |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Method | Description | |
---|---|---|
CloseHandle ( |
||
DuplicateToken ( |
||
LogonUser ( string lpszUsername, string lpszDomain, string lpszPassword, int dwLogonType, int dwLogonProvider, |
||
RevertToSelf ( ) : bool |
public Impersonate ( string userName, string domain, string password ) : bool | ||
userName | string | |
domain | string | |
password | string | |
return | bool |
public static RunAs ( string userName, string domain, string password, System.Action action ) : bool | ||
userName | string | |
domain | string | |
password | string | |
action | System.Action | |
return | bool |