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
‘선언
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.
- 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.