IMemberCreationService.CreateEvent 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
透過使用指定的事件名稱、事件類型和屬性,在指定類別上建立事件。
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
一個定義事件名稱的字串。
- attributes
- AttributeInfo[]
一個 AttributeInfo 包含所有屬性資訊的陣列,需指派給事件。
- emitDependencyProperty
- Boolean
true以釋放與事件相關的任何依賴性質;否則,。 false