Click or drag to resize

MenuNewFromIDList Method (IWithIdList, BuildMenuOptions, CMF, IDataObject, Object, Boolean)

Gets the 'New' menu from a PIDL. This menu is only supported for Shell folders.

Namespace:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static Menu NewFromIDList(
	IWithIdList idList,
	BuildMenuOptions options = BuildMenuOptions.None,
	CMF flags = CMF.CMF_NORMAL,
	IDataObject dataObject = null,
	Object site = null,
	bool throwOnError = true
)

Parameters

idList
Type: ShellBoost.CoreIWithIdList
The PIDL.
options (Optional)
Type: ShellBoost.Core.WindowsShellBuildMenuOptions
The options.
flags (Optional)
Type: ShellBoost.Core.WindowsShellCMF
Optional flags that specify how the shortcut menu can be changed.
dataObject (Optional)
Type: System.Runtime.InteropServices.ComTypesIDataObject
An optional data object instance.
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
ArgumentNullExceptionidList is null.
See Also