ShellBrowserInvokeContextMenuCommand Method |
Invokes the given shell command to the active object or, if not empty, to the obejct in the
MultiObjects property.
Namespace: Jam.ShellAssembly: ShellBrowser (in ShellBrowser.dll) Version: 7.2
Syntaxpublic bool InvokeContextMenuCommand(
ShellCommand pCommand
)
Public Function InvokeContextMenuCommand (
pCommand As ShellCommand
) As Boolean
public:
bool InvokeContextMenuCommand(
ShellCommand^ pCommand
)
member InvokeContextMenuCommand :
pCommand : ShellCommand -> bool Parameters
- pCommand ShellCommand
- The command as string that should be executed, e.g. "copy" or "open".
An empty string will invoke the default command.
Return Value
Booleantrue, if successful. false an error occured.
Exceptions
Example
Shows the "properties" dialog of the Windows folder.
using (ShellBrowser lShellBrowser = new ShellBrowser(@"C:\Windows"))
{
lShellBrowser.InvokeContextMenuCommand(ShellCommand.Properties);
lShellBrowser.InvokeContextMenuCommand("properties");
}
See Also