IVsDataViewCommandProvider.CreateCommand(Int32, CommandID) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.