Skip to content

Pact Impersonation WindowsImpersonator Execute(Pact Impersonation ImpersonationSettings System Action)

welshronaldo edited this page May 30, 2022 · 5 revisions

WindowsImpersonator.Execute(ImpersonationSettings, Action) Method

Executes the provided action within the impersonated context

public void Execute(Pact.Impersonation.ImpersonationSettings settings, System.Action action);

Parameters

settings Pact.Impersonation.ImpersonationSettings
Passed on a per-action basis as it's not improbable you may need to impersonate with different credentials

action System.Action
The action to execute

Implements Execute(ImpersonationSettings, Action)

Clone this wiki locally