ShellUtilitiesInvokeMenuItem Method (String, FuncShellMenuItem, Boolean) |
Invokes a shell item's context menu item.
Namespace:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax 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 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