Partager via


UserIdentity.Impersonate Method ()

 

Impersonates the user account with the value in the WindowsIdentity property.

Namespace:   Microsoft.WindowsServerSolutions.Users
Assembly:  UserObjectModel (in UserObjectModel.dll)

Syntax

public WindowsImpersonationContext Impersonate()
public:
WindowsImpersonationContext^ Impersonate()
Public Function Impersonate As WindowsImpersonationContext

Return Value

Type: System.Security.Principal.WindowsImpersonationContext

An instance of WindowsImpersonationContext.

See Also

UserIdentity Class
Microsoft.WindowsServerSolutions.Users Namespace

Return to top