Partager via


DataViewCommandProvider.CreateCommand Method (Int32, CommandID)

Creates a menu command for a Server Explorer menu item.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

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

Implements

IVsDataViewCommandProvider.CreateCommand(Int32, CommandID)

.NET Framework Security

See Also

Reference

DataViewCommandProvider Class

CreateCommand Overload

Microsoft.VisualStudio.Data.Framework Namespace