Share via


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

'Declaration
Function CreateCommand ( _
    itemId As Integer, _
    commandId As CommandID _
) As MenuCommand
MenuCommand CreateCommand(
    int itemId,
    CommandID commandId
)
MenuCommand^ CreateCommand(
    int itemId, 
    CommandID^ commandId
)
abstract CreateCommand : 
        itemId:int * 
        commandId:CommandID -> MenuCommand
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.

.NET Framework Security

See Also

Reference

IVsDataViewCommandProvider Interface

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace