IMemberCreationService.UpdateEvent Method

Definition

Sets a new name and type to an existing event on the specified class.

C#
public void UpdateEvent(string className, string oldEventName, Type oldEventType, string newEventName, Type newEventType, System.Workflow.ComponentModel.Compiler.AttributeInfo[] attributes, bool emitDependencyProperty, bool isMetaProperty);

Parameters

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.

oldEventType
Type

The Type associated with the existing event.

newEventName
String

A string that contains the new name of the updated event.

newEventType
Type

The Type to associate with the updated event.

attributes
AttributeInfo[]

An AttributeInfo array that contains information on all attributes to assign to the updated event.

emitDependencyProperty
Boolean

true to update the event to emit a dependency property; otherwise, false.

isMetaProperty
Boolean

true to set the event as a meta property; otherwise, false.

Applies to

Produkt Wersje
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1