Creates a selection menu command for multiple nodes in Server Explorer.
Namespace: Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'宣言
Function CreateSelectionCommand ( _
commandId As CommandID _
) As MenuCommand
'使用
Dim instance As IVsDataViewCommandProvider
Dim commandId As CommandID
Dim returnValue As MenuCommand
returnValue = instance.CreateSelectionCommand(commandId)
MenuCommand CreateSelectionCommand(
CommandID commandId
)
MenuCommand^ CreateSelectionCommand(
CommandID^ commandId
)
function CreateSelectionCommand(
commandId : CommandID
) : MenuCommand
Parameters
commandId
Type: System.ComponentModel.Design.CommandIDA CommandID object instance uniquely identifying the command associated with the specified item in the data view hierarchy.
Return Value
Type: System.ComponentModel.Design.MenuCommand
A MenuCommand object representing a menu command item, or a null reference (Nothing in Visual Basic) if no command was created.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsDataViewCommandProvider Interface
IVsDataViewCommandProvider Members
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace