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.

适用于