IMemberCreationService.CreateEvent 方法

定义

使用指定的事件名称、事件类型和属性在指定类上创建事件。

public:
 void CreateEvent(System::String ^ className, System::String ^ eventName, Type ^ eventType, cli::array <System::Workflow::ComponentModel::Compiler::AttributeInfo ^> ^ attributes, bool emitDependencyProperty);
public void CreateEvent(string className, string eventName, Type eventType, System.Workflow.ComponentModel.Compiler.AttributeInfo[] attributes, bool emitDependencyProperty);
abstract member CreateEvent : string * string * Type * System.Workflow.ComponentModel.Compiler.AttributeInfo[] * bool -> unit
Public Sub CreateEvent (className As String, eventName As String, eventType As Type, attributes As AttributeInfo(), emitDependencyProperty As Boolean)

参数

className
String

一个字符串,其中包含要向其添加事件的类名。

eventName
String

定义事件名称的字符串。

eventType
Type

Type分配给事件。

attributes
AttributeInfo[]

一个 AttributeInfo 数组,其中包含要分配给事件的所有属性的信息。

emitDependencyProperty
Boolean

true 发出与事件关联的任何依赖项属性;否则,为 false.

适用于