Språk

IMemberCreationService.UpdateEvent Metod

Definition

Anger ett nytt namn och en ny typ till en befintlig händelse i den angivna klassen.

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)

Parametrar

className
String

En sträng som innehåller namnet på den klass som innehåller händelsen som ska uppdateras.

oldEventName
String

En sträng som innehåller namnet på den befintliga händelsen.

oldEventType
Type

Associerad Type med den befintliga händelsen.

newEventName
String

En sträng som innehåller det nya namnet på den uppdaterade händelsen.

newEventType
Type

Associera Type med den uppdaterade händelsen.

attributes
AttributeInfo[]

En AttributeInfo matris som innehåller information om alla attribut som ska tilldelas till den uppdaterade händelsen.

emitDependencyProperty
Boolean

trueför att uppdatera händelsen för att generera en beroendeegenskap. annars . false

isMetaProperty
Boolean

trueför att ange händelsen som en metaegenskap; annars . false

Gäller för