Click or drag to resize

MenuContextFromItem Method

Gets the context menu from a shell item.

Namespace:  callback.ShellBoost.Core.WindowsShell
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static Menu ContextFromItem(
	Item item,
	BuildMenuOptions options = BuildMenuOptions.None,
	IBindCtx context = null,
	CMF flags = CMF.CMF_NORMAL,
	Object site = null,
	bool throwOnError = true
)

Parameters

item
Type: callback.ShellBoost.Core.WindowsShellItem
The item.
options (Optional)
Type: callback.ShellBoost.Core.WindowsShellBuildMenuOptions
The options.
context (Optional)
Type: System.Runtime.InteropServices.ComTypesIBindCtx
The COM bind context.
flags (Optional)
Type: callback.ShellBoost.Core.WindowsShellCMF
Optional flags that specify how the shortcut menu can be changed.
site (Optional)
Type: SystemObject
An optional COM object site.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: Menu
An instance of menu or null.
Exceptions
ExceptionCondition
ArgumentNullExceptionitem is null.
See Also