Langue

IMemberCreationService.CreateEvent Méthode

Définition

Crée un événement sur la classe spécifiée à l’aide du nom d’événement, du type d’événement et des attributs spécifiés.

public:
 void CreateEvent(System::String ^ className, System::String ^ eventName, Type ^ eventType, cli::array <System::Workflow::ComponentModel::Compiler::AttributeInfo ^> ^ attributes, bool emitDependencyProperty);
public void CreateEvent(string className, string eventName, Type eventType, System.Workflow.ComponentModel.Compiler.AttributeInfo[] attributes, bool emitDependencyProperty);
abstract member CreateEvent : string * string * Type * System.Workflow.ComponentModel.Compiler.AttributeInfo[] * bool -> unit
Public Sub CreateEvent (className As String, eventName As String, eventType As Type, attributes As AttributeInfo(), emitDependencyProperty As Boolean)

Paramètres

className
String

Chaîne qui contient le nom de classe auquel ajouter l’événement.

eventName
String

Chaîne qui définit le nom de l’événement.

eventType
Type

Affecté Type à l’événement.

attributes
AttributeInfo[]

Tableau AttributeInfo qui contient des informations sur tous les attributs à affecter à l’événement.

emitDependencyProperty
Boolean

true pour émettre les propriétés de dépendance associées à l’événement ; sinon, false.

S’applique à