MailBee.NET Objects 7.1

Impersonation Constructor 

Creates a new instance of Impersonation class.

public Impersonation();

Remarks

If your application is multi-threaded and you need to have multiple impersonated threads, each such thread must maintain its own instance of Impersonation class. Single-threaded applications need only a single instance of this class.

To get the name of the user account being used by the current thread, call System.Security.Principal.WindowsIdentity.GetCurrent().Name.

Exceptions

Exception TypeCondition
MailBeeLicenseExceptionMailBee.NET Security Powerup not licensed.

See Also

Impersonation Class | MailBee.Security Namespace