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

適用於