C# Class Dev2.Impersonator

Inheritance: IDisposable
Afficher le fichier Open project: Warewolf-ESB/Warewolf Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
Impersonate ( string userName, string domain, string password ) : bool
RunAs ( string userName, string domain, string password, System.Action action ) : bool
Undo ( ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
CloseHandle ( IntPtr handle ) : bool
DuplicateToken ( IntPtr hToken, int impersonationLevel, IntPtr &hNewToken ) : int
LogonUser ( string lpszUsername, string lpszDomain, string lpszPassword, int dwLogonType, int dwLogonProvider, IntPtr &phToken ) : bool
RevertToSelf ( ) : bool

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Impersonate() public méthode

public Impersonate ( string userName, string domain, string password ) : bool
userName string
domain string
password string
Résultat bool

RunAs() public static méthode

public static RunAs ( string userName, string domain, string password, System.Action action ) : bool
userName string
domain string
password string
action System.Action
Résultat bool

Undo() public méthode

public Undo ( ) : void
Résultat void