MailBee.NET Objects 7.1

Impersonation Members

Impersonation overview

Public Instance Constructors

Impersonation Constructor Creates a new instance of Impersonation class.

Public Instance Properties

IsImpersonated Gets whether the impersonation mode is on and the current thread is being impersonating another user.
LastResult Gets a numeric code of the last error.
ThrowExceptions Gets or sets whether the object will throw exceptions on errors.

Public Instance Methods

Dispose Releases the resources associated with the Impersonation object.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
Logoff Terminates the impersonation mode initiated with LogonAs call and reverts back to the user account the current thread was created on.
LogonAs Makes the current thread impersonate the specified user account.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Impersonation Class | MailBee.Security Namespace