TypeDescriptor.CreateEvent Metoda

Definicja

Tworzy nowy deskryptor zdarzeń, który jest identyczny z istniejącym deskryptorem zdarzeń.

Przeciążenia

CreateEvent(Type, EventDescriptor, Attribute[])

Tworzy nowy deskryptor zdarzeń, który jest identyczny z istniejącym deskryptorem zdarzeń po przekazaniu istniejącego EventDescriptordeskryptora zdarzeń.

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

Tworzy nowy deskryptor zdarzeń, który jest identyczny z istniejącym deskryptorem zdarzeń, dynamicznie generując informacje deskryptora z określonego zdarzenia na typie.

CreateEvent(Type, EventDescriptor, Attribute[])

Źródło:
TypeDescriptor.cs
Źródło:
TypeDescriptor.cs
Źródło:
TypeDescriptor.cs

Tworzy nowy deskryptor zdarzeń, który jest identyczny z istniejącym deskryptorem zdarzeń po przekazaniu istniejącego EventDescriptordeskryptora zdarzeń.

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

Parametry

componentType
Type

Typ składnika, dla którego ma zostać utworzone nowe zdarzenie.

oldEventDescriptor
EventDescriptor

Istniejące informacje o zdarzeniu.

attributes
Attribute[]

Nowe atrybuty.

Zwraca

Nowy EventDescriptor , który scalił określone atrybuty metadanych z istniejącymi atrybutami metadanych.

Zobacz też

Dotyczy

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

Źródło:
TypeDescriptor.cs
Źródło:
TypeDescriptor.cs
Źródło:
TypeDescriptor.cs

Tworzy nowy deskryptor zdarzeń, który jest identyczny z istniejącym deskryptorem zdarzeń, dynamicznie generując informacje deskryptora z określonego zdarzenia na typie.

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

Parametry

componentType
Type

Typ składnika, na który znajduje się zdarzenie.

name
String

Nazwa zdarzenia.

type
Type

Typ delegata, który obsługuje zdarzenie.

attributes
Attribute[]

Atrybuty tego zdarzenia.

Zwraca

Element EventDescriptor powiązany z typem.

Zobacz też

Dotyczy