JamBaseShellListViewInvokeCommandOnSelected Method |
Invokes the given command on the selected items.
See
ShellCommand class for a list of possible commands.
Namespace:
Jam.Shell
Assembly:
ShellBrowser (in ShellBrowser.dll) Version: 7.1
Syntax public virtual bool InvokeCommandOnSelected(
ShellCommand pCommand
)
Public Overridable Function InvokeCommandOnSelected (
pCommand As ShellCommand
) As Boolean
public:
virtual bool InvokeCommandOnSelected(
ShellCommand^ pCommand
)
abstract InvokeCommandOnSelected :
pCommand : ShellCommand -> bool
override InvokeCommandOnSelected :
pCommand : ShellCommand -> bool
Parameters
- pCommand
- Type: Jam.ShellShellCommand
A command verb, like Open, Properties,
Delete, or any other command of installed shell extensions that may be specified as a string.
Return Value
Type:
Booleantrue if the command was invoked successfully, false otherwise
Implements
IShellCommandInvokableInvokeCommandOnSelected(ShellCommand)Examples
Copy the files selected in the a
ShellListView into a different folder.
shellListView1.InvokeCommandOnSelected(ShellCommand.Copy);
using (ShellContextMenuProvider lContextMenu = new ShellContextMenuProvider(new ItemIdList(@"d:\backup")))
{
lContextMenu.ExecuteCommand(ShellCommand.Paste);
}
See Also