Click or drag to resize

MenuInvoke Method

Invokes the specified menu.

Namespace:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public int Invoke(
	MenuInvokeOptions options,
	bool throwOnError = true
)

Parameters

options
Type: ShellBoost.Core.WindowsShellMenuInvokeOptions
The options.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: Int32
The result of the underlying IContextMenu::InvokeCommand method call. 0 if it succeeded, otherwise an error code.
Exceptions
ExceptionCondition
ArgumentNullExceptionitem is null.
See Also