Initializes a new instance of the DataMenuCommand class, specifying the item ID, command identifier, and events.
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, _
statusHandler As EventHandler, _
handler As EventHandler _
)
'使用
Dim itemId As Integer
Dim command As CommandID
Dim statusHandler As EventHandler
Dim handler As EventHandler
Dim instance As New DataViewMenuCommand(itemId, _
command, statusHandler, handler)
public DataViewMenuCommand(
int itemId,
CommandID command,
EventHandler statusHandler,
EventHandler handler
)
public:
DataViewMenuCommand(
int itemId,
CommandID^ command,
EventHandler^ statusHandler,
EventHandler^ handler
)
public function DataViewMenuCommand(
itemId : int,
command : CommandID,
statusHandler : EventHandler,
handler : EventHandler
)
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.
statusHandler
Type: System.EventHandlerThe event to raise to convey status updates.
handler
Type: System.EventHandlerThe event to raise when the user selects the menu item.
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.