IMemberCreationService.CreateEvent Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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.
- 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
.