다음을 통해 공유


IVsDataViewCommandProvider.CreateCommand(Int32, CommandID) Method

Definition

Creates a menu command for a Server Explorer menu item.

public:
 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
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.

Applies to