Partager via


DataMenuCommand Constructors

Definition

Overloads

DataMenuCommand(CommandID)

[SECURITY CRITICAL] Initializes a new instance of the DataMenuCommand class, specifying the command identifier.

DataMenuCommand(CommandID, EventHandler)

[SECURITY CRITICAL] Initializes a new instance of the DataMenuCommand class, specifying the command identifier and event.

DataMenuCommand(CommandID, EventHandler, EventHandler)

[SECURITY CRITICAL] Initializes a new instance of the DataMenuCommand class, specifying the command identifier and events.

DataMenuCommand(CommandID)

[SECURITY CRITICAL] Initializes a new instance of the DataMenuCommand class, specifying the command identifier.

public:
 DataMenuCommand(System::ComponentModel::Design::CommandID ^ command);
public DataMenuCommand (System.ComponentModel.Design.CommandID command);
new Microsoft.VisualStudio.Data.Framework.DataMenuCommand : System.ComponentModel.Design.CommandID -> Microsoft.VisualStudio.Data.Framework.DataMenuCommand
Public Sub New (command As CommandID)

Parameters

command
CommandID

A CommandID object containing the unique command ID that links this menu command to the environment's menu.

Applies to

DataMenuCommand(CommandID, EventHandler)

[SECURITY CRITICAL] Initializes a new instance of the DataMenuCommand class, specifying the command identifier and event.

public:
 DataMenuCommand(System::ComponentModel::Design::CommandID ^ command, EventHandler ^ handler);
public DataMenuCommand (System.ComponentModel.Design.CommandID command, EventHandler handler);
new Microsoft.VisualStudio.Data.Framework.DataMenuCommand : System.ComponentModel.Design.CommandID * EventHandler -> Microsoft.VisualStudio.Data.Framework.DataMenuCommand
Public Sub New (command As CommandID, handler As EventHandler)

Parameters

command
CommandID

A CommandID object containing the unique command ID that links this menu command to the environment's menu.

handler
EventHandler

The event to raise when the user selects the menu item.

Applies to

DataMenuCommand(CommandID, EventHandler, EventHandler)

[SECURITY CRITICAL] Initializes a new instance of the DataMenuCommand class, specifying the command identifier and events.

public:
 DataMenuCommand(System::ComponentModel::Design::CommandID ^ command, EventHandler ^ statusHandler, EventHandler ^ handler);
public DataMenuCommand (System.ComponentModel.Design.CommandID command, EventHandler statusHandler, EventHandler handler);
new Microsoft.VisualStudio.Data.Framework.DataMenuCommand : System.ComponentModel.Design.CommandID * EventHandler * EventHandler -> Microsoft.VisualStudio.Data.Framework.DataMenuCommand
Public Sub New (command As CommandID, statusHandler As EventHandler, handler As EventHandler)

Parameters

command
CommandID

A CommandID object containing the unique command ID that links this menu command to the environment's menu.

statusHandler
EventHandler

The event to raise to convey status updates.

handler
EventHandler

The event to raise when the user selects the menu item.

Applies to