IMemberCreationService.UpdateEvent(String, String, Type, String, Type, AttributeInfo[], Boolean, Boolean) 方法
定义
将新名称和类型设置为指定类上的现有事件。Sets a new name and type to an existing event on the specified class.
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
一个包含类名称的字符串,该类中包含要更新的事件。A string that contains the name of the class that contains the event to update.
- oldEventName
- String
一个字符串,其中包含现有事件的名称。A string that contains the name of the existing event.
- newEventName
- String
一个字符串,其中包含已更新的事件的新名称。A string that contains the new name of the updated event.
- attributes
- AttributeInfo[]
一个 AttributeInfo 数组,其中包含有关要分配给已更新的事件的所有属性的信息。An AttributeInfo array that contains information on all attributes to assign to the updated event.
- emitDependencyProperty
- Boolean
为 true 则更新事件以发出依赖项属性;否则为 false。true to update the event to emit a dependency property; otherwise, false.
- isMetaProperty
- Boolean
为 true 则将事件设置为元属性;否则为 false。true to set the event as a meta property; otherwise, false.