Condividi tramite


IMemberCreationService.CreateEvent Metodo

Definizione

Crea un evento nella classe indicata utilizzando il nome di 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 alla quale aggiungere l'evento.

eventName
String

Stringa che definisce il nome dell'evento.

eventType
Type

Type assegnato all'evento.

attributes
AttributeInfo[]

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

emitDependencyProperty
Boolean

true per creare qualsiasi proprietà di dipendenza associata all'evento; in caso contrario, false.

Si applica a