語言

IMemberCreationService.UpdateEvent 方法

定義

將新名稱和類型設定為指定類別上的現有事件。

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

一個包含現有事件名稱的字串。

oldEventType
Type

與 Type 現有活動相關聯。

newEventName
String

一個包含更新事件新名稱的字串。

newEventType
Type

Type與更新後的活動相連結。

attributes
AttributeInfo[]

一個 AttributeInfo 包含所有屬性資訊的陣列,需指派給更新事件。

emitDependencyProperty
Boolean

true更新事件以發出相依性質;否則,。 false

isMetaProperty
Boolean

true將事件設定為元性質;否則,。 false

適用於