IMemberCreationService.CreateEvent Yöntem

Tanım

Belirtilen olay adını, olay türünü ve öznitelikleri kullanarak belirtilen sınıfta bir olay oluşturur.

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)

Parametreler

className
String

Olayın ekleneceği sınıf adını içeren bir dize.

eventName
String

Olayın adını tanımlayan dize.

eventType
Type

Olaya Type atanan.

attributes
AttributeInfo[]

AttributeInfo Olaya atanacak tüm öznitelikler hakkında bilgi içeren bir dizi.

emitDependencyProperty
Boolean

true olayla ilişkili bağımlılık özelliklerini yaymak için; aksi takdirde , false.

Şunlara uygulanır