Initializes a new instance of the DataViewMenuCommand class, specifying the item ID and command identifier.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Public Sub New ( _
itemId As Integer, _
command As CommandID _
)
'使用
Dim itemId As Integer
Dim command As CommandID
Dim instance As New DataViewMenuCommand(itemId, _
command)
public DataViewMenuCommand(
int itemId,
CommandID command
)
public:
DataViewMenuCommand(
int itemId,
CommandID^ command
)
public function DataViewMenuCommand(
itemId : int,
command : CommandID
)
Parameters
itemId
Type: System.Int32A numerical value that uniquely identifies a node in the data view hierarchy.
command
Type: System.ComponentModel.Design.CommandIDA CommandID object containing the unique command ID that links this menu command to the environment's menu.
Remarks
This constructor delegates the call to DataViewMenuCommand and passes a null reference (Nothing in Visual Basic) for the last two arguments.
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.