Sdílet prostřednictvím


OleMenuCommand Constructors

Definition

Overloads

OleMenuCommand(EventHandler, CommandID)

Builds a new OleMenuCommand.

OleMenuCommand(EventHandler, CommandID, Boolean)

Builds a new OleMenuCommand

OleMenuCommand(EventHandler, EventHandler, CommandID)

Initializes a new instance of OleMenuCommand for the specified command with the specified invocation and status handlers.

OleMenuCommand(EventHandler, CommandID, String)

Builds a new OleMenuCommand.

OleMenuCommand(EventHandler, EventHandler, EventHandler, CommandID)

Initializes a new instance of OleMenuCommand for the specified command with the specified pre-QueryStatus, invocation, and status handlers.

OleMenuCommand(EventHandler, EventHandler, CommandID, String)

Initializes a new instance of OleMenuCommand for the specified command with the specified invocation and status handlers.

OleMenuCommand(EventHandler, EventHandler, EventHandler, CommandID, String)

Initializes a new instance of OleMenuCommand for the specified command with the specified pre-QueryStatus, invocation, and status handlers.

OleMenuCommand(EventHandler, CommandID)

Builds a new OleMenuCommand.

public:
 OleMenuCommand(EventHandler ^ invokeHandler, System::ComponentModel::Design::CommandID ^ id);
public OleMenuCommand (EventHandler invokeHandler, System.ComponentModel.Design.CommandID id);
new Microsoft.VisualStudio.Shell.OleMenuCommand : EventHandler * System.ComponentModel.Design.CommandID -> Microsoft.VisualStudio.Shell.OleMenuCommand
Public Sub New (invokeHandler As EventHandler, id As CommandID)

Parameters

invokeHandler
EventHandler

The event handler called to execute the command.

id
CommandID

ID of the command.

Applies to

OleMenuCommand(EventHandler, CommandID, Boolean)

Builds a new OleMenuCommand

public:
 OleMenuCommand(EventHandler ^ invokeHandler, System::ComponentModel::Design::CommandID ^ id, bool queryStatusSupported);
public OleMenuCommand (EventHandler invokeHandler, System.ComponentModel.Design.CommandID id, bool queryStatusSupported);
new Microsoft.VisualStudio.Shell.OleMenuCommand : EventHandler * System.ComponentModel.Design.CommandID * bool -> Microsoft.VisualStudio.Shell.OleMenuCommand
Public Sub New (invokeHandler As EventHandler, id As CommandID, queryStatusSupported As Boolean)

Parameters

invokeHandler
EventHandler

The event handler called to execute the command.

id
CommandID

ID of the command.

queryStatusSupported
Boolean

If false command will always respond to query status as not supported to let parent handle query status

Applies to

OleMenuCommand(EventHandler, EventHandler, CommandID)

Initializes a new instance of OleMenuCommand for the specified command with the specified invocation and status handlers.

public:
 OleMenuCommand(EventHandler ^ invokeHandler, EventHandler ^ changeHandler, System::ComponentModel::Design::CommandID ^ id);
public OleMenuCommand (EventHandler invokeHandler, EventHandler changeHandler, System.ComponentModel.Design.CommandID id);
new Microsoft.VisualStudio.Shell.OleMenuCommand : EventHandler * EventHandler * System.ComponentModel.Design.CommandID -> Microsoft.VisualStudio.Shell.OleMenuCommand
Public Sub New (invokeHandler As EventHandler, changeHandler As EventHandler, id As CommandID)

Parameters

invokeHandler
EventHandler

The event handler called to execute the command.

changeHandler
EventHandler

The event handler called when the command's status changes.

id
CommandID

ID of the command.

Applies to

OleMenuCommand(EventHandler, CommandID, String)

Builds a new OleMenuCommand.

public:
 OleMenuCommand(EventHandler ^ invokeHandler, System::ComponentModel::Design::CommandID ^ id, System::String ^ Text);
public:
 OleMenuCommand(EventHandler ^ invokeHandler, System::ComponentModel::Design::CommandID ^ id, System::String ^ text);
public OleMenuCommand (EventHandler invokeHandler, System.ComponentModel.Design.CommandID id, string Text);
public OleMenuCommand (EventHandler invokeHandler, System.ComponentModel.Design.CommandID id, string text);
new Microsoft.VisualStudio.Shell.OleMenuCommand : EventHandler * System.ComponentModel.Design.CommandID * string -> Microsoft.VisualStudio.Shell.OleMenuCommand
new Microsoft.VisualStudio.Shell.OleMenuCommand : EventHandler * System.ComponentModel.Design.CommandID * string -> Microsoft.VisualStudio.Shell.OleMenuCommand
Public Sub New (invokeHandler As EventHandler, id As CommandID, Text As String)
Public Sub New (invokeHandler As EventHandler, id As CommandID, text As String)

Parameters

invokeHandler
EventHandler

The event handler called to execute the command.

id
CommandID

ID of the command.

Texttext
String

The text of the command.

Applies to

OleMenuCommand(EventHandler, EventHandler, EventHandler, CommandID)

Initializes a new instance of OleMenuCommand for the specified command with the specified pre-QueryStatus, invocation, and status handlers.

public:
 OleMenuCommand(EventHandler ^ invokeHandler, EventHandler ^ changeHandler, EventHandler ^ beforeQueryStatus, System::ComponentModel::Design::CommandID ^ id);
public OleMenuCommand (EventHandler invokeHandler, EventHandler changeHandler, EventHandler beforeQueryStatus, System.ComponentModel.Design.CommandID id);
new Microsoft.VisualStudio.Shell.OleMenuCommand : EventHandler * EventHandler * EventHandler * System.ComponentModel.Design.CommandID -> Microsoft.VisualStudio.Shell.OleMenuCommand
Public Sub New (invokeHandler As EventHandler, changeHandler As EventHandler, beforeQueryStatus As EventHandler, id As CommandID)

Parameters

invokeHandler
EventHandler

The event handler called to execute the command.

changeHandler
EventHandler

The event handler called when the command's status changes.

beforeQueryStatus
EventHandler

Event handler called when a lient asks for the command status.

id
CommandID

ID of the command.

Applies to

OleMenuCommand(EventHandler, EventHandler, CommandID, String)

Initializes a new instance of OleMenuCommand for the specified command with the specified invocation and status handlers.

public:
 OleMenuCommand(EventHandler ^ invokeHandler, EventHandler ^ changeHandler, System::ComponentModel::Design::CommandID ^ id, System::String ^ Text);
public:
 OleMenuCommand(EventHandler ^ invokeHandler, EventHandler ^ changeHandler, System::ComponentModel::Design::CommandID ^ id, System::String ^ text);
public OleMenuCommand (EventHandler invokeHandler, EventHandler changeHandler, System.ComponentModel.Design.CommandID id, string Text);
public OleMenuCommand (EventHandler invokeHandler, EventHandler changeHandler, System.ComponentModel.Design.CommandID id, string text);
new Microsoft.VisualStudio.Shell.OleMenuCommand : EventHandler * EventHandler * System.ComponentModel.Design.CommandID * string -> Microsoft.VisualStudio.Shell.OleMenuCommand
new Microsoft.VisualStudio.Shell.OleMenuCommand : EventHandler * EventHandler * System.ComponentModel.Design.CommandID * string -> Microsoft.VisualStudio.Shell.OleMenuCommand
Public Sub New (invokeHandler As EventHandler, changeHandler As EventHandler, id As CommandID, Text As String)
Public Sub New (invokeHandler As EventHandler, changeHandler As EventHandler, id As CommandID, text As String)

Parameters

invokeHandler
EventHandler

The event handler called to execute the command.

changeHandler
EventHandler

The event handler called when the command's status changes.

id
CommandID

ID of the command.

Texttext
String

The text of the command.

Applies to

OleMenuCommand(EventHandler, EventHandler, EventHandler, CommandID, String)

Initializes a new instance of OleMenuCommand for the specified command with the specified pre-QueryStatus, invocation, and status handlers.

public:
 OleMenuCommand(EventHandler ^ invokeHandler, EventHandler ^ changeHandler, EventHandler ^ beforeQueryStatus, System::ComponentModel::Design::CommandID ^ id, System::String ^ Text);
public:
 OleMenuCommand(EventHandler ^ invokeHandler, EventHandler ^ changeHandler, EventHandler ^ beforeQueryStatus, System::ComponentModel::Design::CommandID ^ id, System::String ^ text);
public OleMenuCommand (EventHandler invokeHandler, EventHandler changeHandler, EventHandler beforeQueryStatus, System.ComponentModel.Design.CommandID id, string Text);
public OleMenuCommand (EventHandler invokeHandler, EventHandler changeHandler, EventHandler beforeQueryStatus, System.ComponentModel.Design.CommandID id, string text);
new Microsoft.VisualStudio.Shell.OleMenuCommand : EventHandler * EventHandler * EventHandler * System.ComponentModel.Design.CommandID * string -> Microsoft.VisualStudio.Shell.OleMenuCommand
new Microsoft.VisualStudio.Shell.OleMenuCommand : EventHandler * EventHandler * EventHandler * System.ComponentModel.Design.CommandID * string -> Microsoft.VisualStudio.Shell.OleMenuCommand
Public Sub New (invokeHandler As EventHandler, changeHandler As EventHandler, beforeQueryStatus As EventHandler, id As CommandID, Text As String)
Public Sub New (invokeHandler As EventHandler, changeHandler As EventHandler, beforeQueryStatus As EventHandler, id As CommandID, text As String)

Parameters

invokeHandler
EventHandler

The event handler called to execute the command.

changeHandler
EventHandler

The event handler called when the command's status changes.

beforeQueryStatus
EventHandler

Event handler called when a client asks for the command status.

id
CommandID

ID of the command.

Texttext
String

The text of the command.

Applies to