ActivityDesignerVerb 构造函数

定义

初始化 ActivityDesignerVerb 的实例。Initializes an instance of an ActivityDesignerVerb.

重载

ActivityDesignerVerb(ActivityDesigner, DesignerVerbGroup, String, EventHandler)

使用一个 ActivityDesignerVerb、一个 ActivityDesigner 值、一条谓词说明和一个 DesignerVerbGroup 初始化 EventHandler 的实例。Initializes an instance of an ActivityDesignerVerb by using an ActivityDesigner, a DesignerVerbGroup value, a description of the verb, and an EventHandler.

ActivityDesignerVerb(ActivityDesigner, DesignerVerbGroup, String, EventHandler, EventHandler)

使用一个 ActivityDesignerVerb、一个 ActivityDesigner 值、一条谓词说明和两个 DesignerVerbGroup 对象(一个用于处理菜单选择事件,另一个用于处理状态更新)初始化 EventHandler 的实例。Initializes an instance of a ActivityDesignerVerb by using an ActivityDesigner, a DesignerVerbGroup value, a description of the verb, and two EventHandler objects, one to handle menu selection events and the other to handle status updates.

ActivityDesignerVerb(ActivityDesigner, DesignerVerbGroup, String, EventHandler)

使用一个 ActivityDesignerVerb、一个 ActivityDesigner 值、一条谓词说明和一个 DesignerVerbGroup 初始化 EventHandler 的实例。Initializes an instance of an ActivityDesignerVerb by using an ActivityDesigner, a DesignerVerbGroup value, a description of the verb, and an EventHandler.

public:
 ActivityDesignerVerb(System::Workflow::ComponentModel::Design::ActivityDesigner ^ activityDesigner, System::Workflow::ComponentModel::Design::DesignerVerbGroup verbGroup, System::String ^ text, EventHandler ^ invokeHandler);
public ActivityDesignerVerb (System.Workflow.ComponentModel.Design.ActivityDesigner activityDesigner, System.Workflow.ComponentModel.Design.DesignerVerbGroup verbGroup, string text, EventHandler invokeHandler);
new System.Workflow.ComponentModel.Design.ActivityDesignerVerb : System.Workflow.ComponentModel.Design.ActivityDesigner * System.Workflow.ComponentModel.Design.DesignerVerbGroup * string * EventHandler -> System.Workflow.ComponentModel.Design.ActivityDesignerVerb
Public Sub New (activityDesigner As ActivityDesigner, verbGroup As DesignerVerbGroup, text As String, invokeHandler As EventHandler)

参数

activityDesigner
ActivityDesigner

要与新谓词关联的 ActivityDesignerThe ActivityDesigner to associate with the new verb.

verbGroup
DesignerVerbGroup

新谓词所属的 DesignerVerbGroupThe DesignerVerbGroup in which the new verb belongs.

text
String

要在菜单上显示的谓词说明。The description of the verb to show on the menu.

invokeHandler
EventHandler

将处理菜单选择事件的 EventHandlerThe EventHandler that will handle the menu selection event.

例外

text 为空或空引用(在 Visual Basic 中为 Nothing)。text is empty or a null reference (Nothing in Visual Basic).

- 或 --or- invokeHandler 为空引用 (Nothing)。invokeHandler is a null reference (Nothing).

适用于

ActivityDesignerVerb(ActivityDesigner, DesignerVerbGroup, String, EventHandler, EventHandler)

使用一个 ActivityDesignerVerb、一个 ActivityDesigner 值、一条谓词说明和两个 DesignerVerbGroup 对象(一个用于处理菜单选择事件,另一个用于处理状态更新)初始化 EventHandler 的实例。Initializes an instance of a ActivityDesignerVerb by using an ActivityDesigner, a DesignerVerbGroup value, a description of the verb, and two EventHandler objects, one to handle menu selection events and the other to handle status updates.

public:
 ActivityDesignerVerb(System::Workflow::ComponentModel::Design::ActivityDesigner ^ activityDesigner, System::Workflow::ComponentModel::Design::DesignerVerbGroup verbGroup, System::String ^ text, EventHandler ^ invokeHandler, EventHandler ^ statusHandler);
public ActivityDesignerVerb (System.Workflow.ComponentModel.Design.ActivityDesigner activityDesigner, System.Workflow.ComponentModel.Design.DesignerVerbGroup verbGroup, string text, EventHandler invokeHandler, EventHandler statusHandler);
new System.Workflow.ComponentModel.Design.ActivityDesignerVerb : System.Workflow.ComponentModel.Design.ActivityDesigner * System.Workflow.ComponentModel.Design.DesignerVerbGroup * string * EventHandler * EventHandler -> System.Workflow.ComponentModel.Design.ActivityDesignerVerb
Public Sub New (activityDesigner As ActivityDesigner, verbGroup As DesignerVerbGroup, text As String, invokeHandler As EventHandler, statusHandler As EventHandler)

参数

activityDesigner
ActivityDesigner

要与 ActivityDesigner 关联的 ActivityDesignerVerbThe ActivityDesigner to associate with the ActivityDesignerVerb.

text
String

要在菜单上显示的谓词说明。The description of the verb to show on the menu.

invokeHandler
EventHandler

处理菜单选择事件的事件处理程序。The event handler that handles the menu selection event.

statusHandler
EventHandler

处理状态更新的事件处理程序。The event handler that handles status updates.

适用于