DataViewCommandProvider.CreateSelectionCommand Method (CommandID)

Creates a selection menu command for multiple nodes in Server Explorer.

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

Syntax

'宣言
Public Function CreateSelectionCommand ( _
    commandId As CommandID _
) As MenuCommand
'使用
Dim instance As DataViewCommandProvider
Dim commandId As CommandID
Dim returnValue As MenuCommand

returnValue = instance.CreateSelectionCommand(commandId)
public MenuCommand CreateSelectionCommand(
    CommandID commandId
)
public:
virtual MenuCommand^ CreateSelectionCommand(
    CommandID^ commandId
) sealed
public final function CreateSelectionCommand(
    commandId : CommandID
) : MenuCommand

Parameters

Return Value

Type: System.ComponentModel.Design.MenuCommand

A MenuCommand object representing a selection menu command item.

Implements

IVsDataViewCommandProvider.CreateSelectionCommand(CommandID)

Permissions

See Also

Reference

DataViewCommandProvider Class

DataViewCommandProvider Members

CreateSelectionCommand Overload

Microsoft.VisualStudio.Data.Framework Namespace