Freigeben über


DataViewCommandProvider.CreateSelectionCommand Method

Definition

Overloads

CreateSelectionCommand(CommandID)

Creates a selection menu command for multiple nodes in Server Explorer.

CreateSelectionCommand(CommandID, Object[])

Creates a selection menu command for multiple nodes in Server Explorer.

CreateSelectionCommand(CommandID)

Creates a selection menu command for multiple nodes in Server Explorer.

public:
 virtual System::ComponentModel::Design::MenuCommand ^ CreateSelectionCommand(System::ComponentModel::Design::CommandID ^ commandId);
public System.ComponentModel.Design.MenuCommand CreateSelectionCommand (System.ComponentModel.Design.CommandID commandId);
abstract member CreateSelectionCommand : System.ComponentModel.Design.CommandID -> System.ComponentModel.Design.MenuCommand
override this.CreateSelectionCommand : System.ComponentModel.Design.CommandID -> System.ComponentModel.Design.MenuCommand
Public Function CreateSelectionCommand (commandId As CommandID) As MenuCommand

Parameters

commandId
CommandID

A CommandID object instance uniquely identifying the command associated with the specified item in the data view hierarchy.

Returns

A MenuCommand object representing a selection menu command item.

Implements

Applies to

CreateSelectionCommand(CommandID, Object[])

Creates a selection menu command for multiple nodes in Server Explorer.

protected:
 virtual System::ComponentModel::Design::MenuCommand ^ CreateSelectionCommand(System::ComponentModel::Design::CommandID ^ commandId, cli::array <System::Object ^> ^ parameters);
protected virtual System.ComponentModel.Design.MenuCommand CreateSelectionCommand (System.ComponentModel.Design.CommandID commandId, object[] parameters);
abstract member CreateSelectionCommand : System.ComponentModel.Design.CommandID * obj[] -> System.ComponentModel.Design.MenuCommand
override this.CreateSelectionCommand : System.ComponentModel.Design.CommandID * obj[] -> System.ComponentModel.Design.MenuCommand
Protected Overridable Function CreateSelectionCommand (commandId As CommandID, parameters As Object()) As MenuCommand

Parameters

commandId
CommandID

A CommandID object instance uniquely identifying the command associated with the specified item in the data view hierarchy.

parameters
Object[]

An array of parameters for use with this command.

Returns

A MenuCommand object representing a selection menu command item.

Applies to