Click or drag to resize

ShellBrowserInvokeContextMenuCommand Method

Invokes the given shell command to the active object or, if not empty, to the obejct in the MultiObjects property.

Namespace:  Jam.Shell
Assembly:  ShellBrowser (in ShellBrowser.dll) Version: 7.1
Syntax
public bool InvokeContextMenuCommand(
	ShellCommand pCommand
)

Parameters

pCommand
Type: Jam.ShellShellCommand
The command as string that should be executed, e.g. "copy" or "open". An empty string will invoke the default command.

Return Value

Type: Boolean
true, if successful. false an error occured.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when the requested operation is invalid.
Examples
Shows the "properties" dialog of the Windows folder.
C#
using (ShellBrowser lShellBrowser = new ShellBrowser(@"C:\Windows"))
{
    lShellBrowser.InvokeContextMenuCommand(ShellCommand.Properties);
    //Next line is compatible also.
    lShellBrowser.InvokeContextMenuCommand("properties");
}
See Also