TypeDescriptor.CreateEvent Methode

Definition

Erstellt einen neuen Ereignisdeskriptor, der mit einem vorhandenen Ereignisdeskriptor identisch ist.

Überlädt

Name Beschreibung
CreateEvent(Type, EventDescriptor, Attribute[])

Erstellt einen neuen Ereignisdeskriptor, der mit einem vorhandenen Ereignisdeskriptor identisch ist, wenn die vorhandene EventDescriptorübergeben wird.

CreateEvent(Type, String, Type, Attribute[])

Erstellt einen neuen Ereignisdeskriptor, der mit einem vorhandenen Ereignisdeskriptor identisch ist, indem dynamisch Deskriptorinformationen aus einem angegebenen Ereignis eines Typs generiert werden.

CreateEvent(Type, EventDescriptor, Attribute[])

Erstellt einen neuen Ereignisdeskriptor, der mit einem vorhandenen Ereignisdeskriptor identisch ist, wenn die vorhandene EventDescriptorübergeben wird.

public:
 static System::ComponentModel::EventDescriptor ^ CreateEvent(Type ^ componentType, System::ComponentModel::EventDescriptor ^ oldEventDescriptor, ... cli::array <Attribute ^> ^ attributes);
public static System.ComponentModel.EventDescriptor CreateEvent(Type componentType, System.ComponentModel.EventDescriptor oldEventDescriptor, params Attribute[] attributes);
static member CreateEvent : Type * System.ComponentModel.EventDescriptor * Attribute[] -> System.ComponentModel.EventDescriptor
Public Shared Function CreateEvent (componentType As Type, oldEventDescriptor As EventDescriptor, ParamArray attributes As Attribute()) As EventDescriptor

Parameter

componentType
Type

Der Typ der Komponente, für die das neue Ereignis erstellt werden soll.

oldEventDescriptor
EventDescriptor

Die vorhandenen Ereignisinformationen.

attributes
Attribute[]

Die neuen Attribute.

Gibt zurück

Eine neue, EventDescriptor die die angegebenen Metadatenattribute mit den vorhandenen Metadatenattributen zusammengeführt hat.

Weitere Informationen

Gilt für:

CreateEvent(Type, String, Type, Attribute[])

Erstellt einen neuen Ereignisdeskriptor, der mit einem vorhandenen Ereignisdeskriptor identisch ist, indem dynamisch Deskriptorinformationen aus einem angegebenen Ereignis eines Typs generiert werden.

public:
 static System::ComponentModel::EventDescriptor ^ CreateEvent(Type ^ componentType, System::String ^ name, Type ^ type, ... cli::array <Attribute ^> ^ attributes);
public static System.ComponentModel.EventDescriptor CreateEvent(Type componentType, string name, Type type, params Attribute[] attributes);
static member CreateEvent : Type * string * Type * Attribute[] -> System.ComponentModel.EventDescriptor
Public Shared Function CreateEvent (componentType As Type, name As String, type As Type, ParamArray attributes As Attribute()) As EventDescriptor

Parameter

componentType
Type

Der Typ der Komponente, auf der sich das Ereignis befindet.

name
String

Der Name des Ereignisses.

type
Type

Der Typ des Delegaten, der das Ereignis behandelt.

attributes
Attribute[]

Die Attribute für dieses Ereignis.

Gibt zurück

Eine EventDescriptor , die an einen Typ gebunden ist.

Weitere Informationen

Gilt für: