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:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax 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 See Also