Język

IMemberCreationService.CreateEvent Metoda

Definicja

Tworzy zdarzenie w określonej klasie przy użyciu określonej nazwy zdarzenia, typu zdarzenia i atrybutów.

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)

Parametry

className
String

Ciąg zawierający nazwę klasy, do którego ma zostać dodane zdarzenie.

eventName
String

Ciąg definiujący nazwę zdarzenia.

eventType
Type

Przypisana Type do zdarzenia.

attributes
AttributeInfo[]

Tablica zawierająca AttributeInfo informacje o wszystkich atrybutach, które mają zostać przypisane do zdarzenia.

emitDependencyProperty
Boolean

true emitować wszelkie właściwości zależności skojarzone ze zdarzeniem; w przeciwnym razie, false.

Dotyczy