ImpersonationHelper Members

Include Protected Members
Include Inherited Members

Helper class to programmatically impersonate a user, load and unload a user's profile, and perform other maintenance-related tasks for impersonating a user.

The ImpersonationHelper type exposes the following members.

Constructors

  Name Description
Public method ImpersonationHelper(String, String, IntPtr, LogonType, LogonProvider, SecurityImpersonationLevel) Initializes a new instance of the ImpersonationHelper class.
Public method ImpersonationHelper(String, String, SecureString, LogonType, LogonProvider, SecurityImpersonationLevel) Initializes a new instance of the ImpersonationHelper class.
Public method ImpersonationHelper(String, String, SecureString, LogonType, LogonProvider, SecurityImpersonationLevel, TokenType) Initializes a new instance of the ImpersonationHelper class.

Top

Properties

  Name Description
Public property Domain Gets or sets the domain of the user to impersonate.
Public property Impersonated Gets or sets whether the user is impersonated.
Public property ImpersonateToken Gets an IntPtr type for the impersonated token of the user. For more information, see COM Data Types.
Public property Login Gets or sets the user name of the user to impersonate.
Public property NewTokenType Gets an IntPtr type for the impersonated token of the user. For more information, see COM Data Types.
Public property Password Sets the encrypted password of the user to impersonate.
Public property ProcessToken Gets an IntPtr type for the impersonated token of the user. For more information, see COM Data Types.
Public property ProfileLoaded Gets or sets whether the profile is loaded.
Public property UserToken Gets an IntPtr type for the impersonated token of the user. For more information, see COM Data Types.

Top

Methods

  Name Description
Public method Dispose() Implementation of the IDisposable interface.
Public method Dispose(Boolean) Implementation of the IDisposable interface.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ImpersonateUser Performs the impersonation of the user based on the parameters provided in the constructor.
Public method LoadUserProfile Loads the user's profile.
Protected method MemberwiseClone (Inherited from Object.)
Public method SetClusterCachedCredentials Sets the credential cache in the cluster with the credentials supplied to the impersonation object.
Public method SetClusterCacheInNewProc Sets the credential cache in the cluster with the credentials that are supplied.
Public method SetScheduledTaskCredentials Sets the credential cache for the scheduled task with the credentials supplied to the impersonation object.
Public method ToString (Inherited from Object.)
Public method Undo Undoes the impersonation of the user, if it is impersonated.
Public method UnloadUserProfile Unloads the user's profile and reverts to self. For information, see RevertToSelf.

Top

See Also

Reference

ImpersonationHelper Class

Microsoft.Office.Excel.Server.Addins.ComputeCluster.Security Namespace