IMemberCreationService.UpdateEvent 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將新名稱和類型設定為指定類別上的現有事件。
public:
void UpdateEvent(System::String ^ className, System::String ^ oldEventName, Type ^ oldEventType, System::String ^ newEventName, Type ^ newEventType, cli::array <System::Workflow::ComponentModel::Compiler::AttributeInfo ^> ^ attributes, bool emitDependencyProperty, bool isMetaProperty);
public void UpdateEvent(string className, string oldEventName, Type oldEventType, string newEventName, Type newEventType, System.Workflow.ComponentModel.Compiler.AttributeInfo[] attributes, bool emitDependencyProperty, bool isMetaProperty);
abstract member UpdateEvent : string * string * Type * string * Type * System.Workflow.ComponentModel.Compiler.AttributeInfo[] * bool * bool -> unit
Public Sub UpdateEvent (className As String, oldEventName As String, oldEventType As Type, newEventName As String, newEventType As Type, attributes As AttributeInfo(), emitDependencyProperty As Boolean, isMetaProperty As Boolean)
參數
- className
- String
一個包含要更新事件的類別名稱的字串。
- oldEventName
- String
一個包含現有事件名稱的字串。
- newEventName
- String
一個包含更新事件新名稱的字串。
- attributes
- AttributeInfo[]
一個 AttributeInfo 包含所有屬性資訊的陣列,需指派給更新事件。
- emitDependencyProperty
- Boolean
true更新事件以發出相依性質;否則,。 false
- isMetaProperty
- Boolean
true將事件設定為元性質;否則,。 false