Share via


DataViewCommandProvider.CreateCommand Method

Definition

Overloads

CreateCommand(Int32, CommandID)

Creates a menu command for a Server Explorer menu item.

CreateCommand(Int32, CommandID, Object[])

Creates a menu command for a Server Explorer menu item containing the specified parameters.

CreateCommand(Int32, CommandID)

Creates a menu command for a Server Explorer menu item.

public:
 virtual System::ComponentModel::Design::MenuCommand ^ CreateCommand(int itemId, System::ComponentModel::Design::CommandID ^ commandId);
public System.ComponentModel.Design.MenuCommand CreateCommand (int itemId, System.ComponentModel.Design.CommandID commandId);
abstract member CreateCommand : int * System.ComponentModel.Design.CommandID -> System.ComponentModel.Design.MenuCommand
override this.CreateCommand : int * System.ComponentModel.Design.CommandID -> System.ComponentModel.Design.MenuCommand
Public Function CreateCommand (itemId As Integer, commandId As CommandID) As MenuCommand

Parameters

itemId
Int32

The identifier of the item in the data view hierarchy on which this command should be invoked.

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 menu command item.

Implements

Applies to

CreateCommand(Int32, CommandID, Object[])

Creates a menu command for a Server Explorer menu item containing the specified parameters.

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

Parameters

itemId
Int32

The identifier of the item in the data view hierarchy on which this command should be invoked.

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 menu command item.

Applies to