Method | Description | |
---|---|---|
Dispose ( ) : void | ||
ImpersonationHelper ( string userName, string domainName, string password, LogonType logonType = LogonType.LOGON32_LOGON_NEW_CREDENTIALS, LogonProvider logonProvider = LogonProvider.LOGON32_PROVIDER_WINNT50 ) : System |
Impersonate a specific user context
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Method | Description | |
---|---|---|
CloseHandle ( |
||
ImpersonateLoggedOnUser ( |
||
LogonUser ( String lpszUserName, String lpszDomain, String lpszPassword, int dwLogonType, int dwLogonProvider, |
||
RevertToSelf ( ) : bool |
public ImpersonationHelper ( string userName, string domainName, string password, LogonType logonType = LogonType.LOGON32_LOGON_NEW_CREDENTIALS, LogonProvider logonProvider = LogonProvider.LOGON32_PROVIDER_WINNT50 ) : System | ||
userName | string | |
domainName | string | |
password | string | |
logonType | LogonType | |
logonProvider | LogonProvider | |
return | System |