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 | |
---|---|---|
ImpersonationHelper(String, String, IntPtr, LogonType, LogonProvider, SecurityImpersonationLevel) | Initializes a new instance of the ImpersonationHelper class. | |
ImpersonationHelper(String, String, SecureString, LogonType, LogonProvider, SecurityImpersonationLevel) | Initializes a new instance of the ImpersonationHelper class. | |
ImpersonationHelper(String, String, SecureString, LogonType, LogonProvider, SecurityImpersonationLevel, TokenType) | Initializes a new instance of the ImpersonationHelper class. |
Top
Properties
Name | Description | |
---|---|---|
Domain | Gets or sets the domain of the user to impersonate. | |
Impersonated | Gets or sets whether the user is impersonated. | |
ImpersonateToken | Gets an IntPtr type for the impersonated token of the user. For more information, see COM Data Types. | |
Login | Gets or sets the user name of the user to impersonate. | |
NewTokenType | Gets an IntPtr type for the impersonated token of the user. For more information, see COM Data Types. | |
Password | Sets the encrypted password of the user to impersonate. | |
ProcessToken | Gets an IntPtr type for the impersonated token of the user. For more information, see COM Data Types. | |
ProfileLoaded | Gets or sets whether the profile is loaded. | |
UserToken | Gets an IntPtr type for the impersonated token of the user. For more information, see COM Data Types. |
Top
Methods
Name | Description | |
---|---|---|
Dispose() | Implementation of the IDisposable interface. | |
Dispose(Boolean) | Implementation of the IDisposable interface. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
ImpersonateUser | Performs the impersonation of the user based on the parameters provided in the constructor. | |
LoadUserProfile | Loads the user's profile. | |
MemberwiseClone | (Inherited from Object.) | |
SetClusterCachedCredentials | Sets the credential cache in the cluster with the credentials supplied to the impersonation object. | |
SetClusterCacheInNewProc | Sets the credential cache in the cluster with the credentials that are supplied. | |
SetScheduledTaskCredentials | Sets the credential cache for the scheduled task with the credentials supplied to the impersonation object. | |
ToString | (Inherited from Object.) | |
Undo | Undoes the impersonation of the user, if it is impersonated. | |
UnloadUserProfile | Unloads the user's profile and reverts to self. For information, see RevertToSelf. |
Top
See Also
Reference
Microsoft.Office.Excel.Server.Addins.ComputeCluster.Security Namespace