Click or drag to resize

ShellUtilitiesInvokeMenuItem Method (String, FuncShellMenuItem, Boolean)

Invokes a shell item's context menu item.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static void InvokeMenuItem(
	string path,
	Func<ShellMenuItem, bool> predicate
)

Parameters

path
Type: SystemString
The shell item's path.
predicate
Type: SystemFuncShellMenuItem, Boolean
The filter that determine wich item should be invoked in the list of available items.
Exceptions
ExceptionCondition
ArgumentExceptionpath or predicate is null.
Remarks
This method behavior depends on many contextual parameters such as the process bitness (32 or 64 bit), the type of process (Console vs Windows), or the the current thread's COM apartment state (STA vs MTA, etc.). It also depends on how dynamic context menu handlers choose to add or not menu items.
See Also