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órych ma być dodawanie zdarzenia.

eventName
String

Ciąg, który definiuje nazwę zdarzenia.

eventType
Type

Przypisana Type do zdarzenia.

attributes
AttributeInfo[]

Tablica AttributeInfo zawierająca informacje o wszystkich atrybutach do przypisania do zdarzenia.

emitDependencyProperty
Boolean

true do emitowania wszystkich właściwości zależności skojarzonych ze zdarzeniem; w przeciwnym razie false .

Dotyczy