TypeDescriptor.CreateEvent Metodo

Definizione

Crea un nuovo descrittore di eventi identico a un descrittore di eventi esistente.

Overload

Nome Descrizione
CreateEvent(Type, EventDescriptor, Attribute[])

Crea un nuovo descrittore di evento identico a un descrittore di evento esistente, quando viene passato l'oggetto esistente EventDescriptor.

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

Crea un nuovo descrittore di evento identico a un descrittore di evento esistente generando in modo dinamico le informazioni del descrittore da un evento specificato in un tipo.

CreateEvent(Type, EventDescriptor, Attribute[])

Crea un nuovo descrittore di evento identico a un descrittore di evento esistente, quando viene passato l'oggetto esistente EventDescriptor.

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

Parametri

componentType
Type

Tipo del componente per cui creare il nuovo evento.

oldEventDescriptor
EventDescriptor

Informazioni sull'evento esistente.

attributes
Attribute[]

Nuovi attributi.

Valori restituiti

EventDescriptor Nuovo oggetto che ha unito gli attributi di metadati specificati con gli attributi di metadati esistenti.

Vedi anche

Si applica a

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

Crea un nuovo descrittore di evento identico a un descrittore di evento esistente generando in modo dinamico le informazioni del descrittore da un evento specificato in un tipo.

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

Parametri

componentType
Type

Tipo del componente in cui si trova l'evento.

name
String

Nome dell'evento.

type
Type

Tipo del delegato che gestisce l'evento.

attributes
Attribute[]

Attributi per questo evento.

Valori restituiti

Oggetto EventDescriptor associato a un tipo.

Vedi anche

Si applica a