IVsDataViewCommandProvider.CreateCommand Method

Creates a menu command for a Server Explorer menu item.

Namespace:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'宣言
Function CreateCommand ( _
    itemId As Integer, _
    commandId As CommandID _
) As MenuCommand
'使用
Dim instance As IVsDataViewCommandProvider
Dim itemId As Integer
Dim commandId As CommandID
Dim returnValue As MenuCommand

returnValue = instance.CreateCommand(itemId, _
    commandId)
MenuCommand CreateCommand(
    int itemId,
    CommandID commandId
)
MenuCommand^ CreateCommand(
    int itemId, 
    CommandID^ commandId
)
function CreateCommand(
    itemId : int, 
    commandId : CommandID
) : MenuCommand

Parameters

  • itemId
    Type: System.Int32

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

Return Value

Type: System.ComponentModel.Design.MenuCommand

A MenuCommand object representing a menu command item.

Permissions

See Also

Reference

IVsDataViewCommandProvider Interface

IVsDataViewCommandProvider Members

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace