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

適用於