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.