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:  callback.ShellBoost.Core.WindowsShell
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.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: callback.ShellBoost.CoreIWithIdList
The PIDL.
options (Optional)
Type: callback.ShellBoost.Core.WindowsShellBuildMenuOptions
The options.
flags (Optional)
Type: callback.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