Click or drag to resize

ShellUtilitiesWithSite Method (Object, Object, Action, Boolean)

Runs an action. If the sited object implements IObjectWithSite, the site object will be set before the action and unset after the action.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static void WithSite(
	Object sited,
	Object site,
	Action action,
	bool throwOnError = true
)

Parameters

sited
Type: SystemObject
The sited. If null, the action will be ran.
site
Type: SystemObject
The site. If null, the action will be ran.
action
Type: SystemAction
The action.
throwOnError (Optional)
Type: SystemBoolean
if set to true [throw on error].
Exceptions
ExceptionCondition
ArgumentNullExceptionaction is null.
See Also