Click or drag to resize

JamBaseShellListViewInvokeCommandOnSelected Method

Invokes the given command on the selected items. See ShellCommand class for a list of possible commands.

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Winforms (in ShellBrowser.Winforms.dll) Version: 6.3.1
Syntax
public virtual bool InvokeCommandOnSelected(
	ShellCommand pCommand
)

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: Boolean
true if the command was invoked successfully, false otherwise

Implements

IShellCommandInvokableInvokeCommandOnSelected(ShellCommand)
Examples
Copy the files selected in the a ShellListView into a different folder.
C#
shellListView1.InvokeCommandOnSelected(ShellCommand.Copy); //Copies the selected items to clipboard.
using (ShellContextMenuProvider lContextMenu = new ShellContextMenuProvider(new ItemIdList(@"d:\backup")))
{
    lContextMenu.ExecuteCommand(ShellCommand.Paste); //pastes the files into d:\backup.
}
See Also