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.
- commandId
Type: System.ComponentModel.Design.CommandID
A 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.
.NET Framework Security
- 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
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace