Click or drag to resize

MenuCreateDefaultContextMenu Method (IEnumerableIWithIdList, Menu, ContextMenuOptions, Boolean)

Creates the default context menu for a list of PIDLs.

Namespace:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static int CreateDefaultContextMenu(
	IEnumerable<IWithIdList> idLists,
	out Menu menu,
	ContextMenuOptions options = null,
	bool throwOnError = true
)

Parameters

idLists
Type: System.Collections.GenericIEnumerableIWithIdList
The list of PIDLs.
menu
Type: ShellBoost.Core.WindowsShellMenu
The menu extracted from the context menu. If wil be extracted only if ShowMenuOptions.ExtractMenu is set to true.
options (Optional)
Type: ShellBoost.Core.WindowsShellContextMenuOptions
The options.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: Int32
0 or an error code.
See Also