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
)
Public Function InvokeContextMenuCommand (
pCommand As ShellCommand
) As Boolean
public:
bool InvokeContextMenuCommand(
ShellCommand^ pCommand
)
member InvokeContextMenuCommand :
pCommand : ShellCommand -> bool
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:
Booleantrue, if successful. false an error occured.
Exceptions Examples
Shows the "properties" dialog of the Windows folder.
using (ShellBrowser lShellBrowser = new ShellBrowser(@"C:\Windows"))
{
lShellBrowser.InvokeContextMenuCommand(ShellCommand.Properties);
lShellBrowser.InvokeContextMenuCommand("properties");
}
See Also