共用方式為


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

適用於