Aspose.Pdf.Examples.CSharp.AsposePDFFacades.Printing.Impersonator.Impersonator C# (CSharp) Method

Impersonator() public method

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.
public Impersonator ( string userName, string domainName, string password ) : System
userName string The name of the user to act as.
domainName string The domain name of the user to act as.
password string The password of the user to act as.
return System
		public Impersonator(
			string userName,
			string domainName,
			string password )
		{
			ImpersonateValidUser( userName, domainName, password );
		}