IMemberCreationService.CreateEvent Metodo

Definizione

Crea un evento nella classe specificata utilizzando il nome dell'evento, il tipo di evento e gli attributi specificati.

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)

Parametri

className
String

Stringa contenente il nome della classe a cui aggiungere l'evento.

eventName
String

Stringa che definisce il nome dell'evento.

eventType
Type

Oggetto Type assegnato all'evento.

attributes
AttributeInfo[]

Matrice AttributeInfo che contiene informazioni su tutti gli attributi da assegnare all'evento.

emitDependencyProperty
Boolean

true per generare eventuali proprietà di dipendenza associate all'evento; in caso contrario, false.

Si applica a