Click or drag to resize

Impersonator Constructor (String, String, String)

Constructor. Starts the impersonation with the given credentials. Please note that the account that instantiates the Impersonator class needs to have the 'Act as part of operating system' privilege set.

Namespace:  MicaSystems.Utils
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public Impersonator(
	string userName,
	string domainName,
	string password
)

Parameters

userName
Type: SystemString
The name of the user to act as.
domainName
Type: SystemString
The domain name of the user to act as.
password
Type: SystemString
The password of the user to act as.
See Also