Click or drag to resize

PFRunAsAdminRun Method

Runs the specified code under the System Admin identity.

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public static void Run(
	PFSite site,
	bool useNewSite,
	PFRunWithUserDelegate codeToExecute
)

Parameters

site
Type: Packflow.CorePFSite
The Packflow site.
useNewSite
Type: SystemBoolean
If set to true, the code will receive a new instance of PFSite instead of reusing the specified one.
codeToExecute
Type: Packflow.CorePFRunWithUserDelegate
The code to execute.
Exceptions
ExceptionCondition
ObjectNotFoundExceptionSystem Admin User could not be found
See Also