DataViewMenuCommand Constructor (Int32, CommandID, EventHandler)
Initializes a new instance of the DataMenuCommand class, specifying the item ID, command identifier, and event.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Public Sub New ( _
itemId As Integer, _
command As CommandID, _
handler As EventHandler _
)
public DataViewMenuCommand(
int itemId,
CommandID command,
EventHandler handler
)
public:
DataViewMenuCommand(
int itemId,
CommandID^ command,
EventHandler^ handler
)
new :
itemId:int *
command:CommandID *
handler:EventHandler -> DataViewMenuCommand
public function DataViewMenuCommand(
itemId : int,
command : CommandID,
handler : EventHandler
)
Parameters
- itemId
Type: System.Int32
A numerical value that uniquely identifies a node in the data view hierarchy.
- command
Type: System.ComponentModel.Design.CommandID
A CommandID object containing the unique command ID that links this menu command to the environment's menu.
- handler
Type: System.EventHandler
The event to raise when the user selects the menu item.
Remarks
This constructor delegates the call to DataViewMenuCommand and passes nulla null reference (Nothing in Visual Basic) for the last argument.
.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.