Click or drag to resize

PFRunAsUserRun Method

Runs the specified code under the specified 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,
	PFUser user,
	bool useNewSite,
	PFRunWithUserDelegate codeToExecute
)

Parameters

site
Type: Packflow.CorePFSite
The Packflow site.
user
Type: Packflow.CorePFUser
The new current user.
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.
See Also