TypeDescriptor.CreateEvent Metoda

Definice

Vytvoří nový popisovač události, který je identický s existujícím popisovačem události.

Přetížení

CreateEvent(Type, EventDescriptor, Attribute[])

Vytvoří nový popisovač události, který je identický s existujícím popisovačem události při předání existujícího EventDescriptorpopisovače události .

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

Vytvoří nový popisovač události, který je identický s existujícím popisovačem události dynamickým generováním informací popisovače ze zadané události na typu.

CreateEvent(Type, EventDescriptor, Attribute[])

Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs

Vytvoří nový popisovač události, který je identický s existujícím popisovačem události při předání existujícího EventDescriptorpopisovače události .

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 komponenty, pro kterou chcete vytvořit novou událost.

oldEventDescriptor
EventDescriptor

Informace o existující události

attributes
Attribute[]

Nové atributy.

Návraty

Nový EventDescriptor , který sloučil zadané atributy metadat s existujícími atributy metadat.

Viz také

Platí pro

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

Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs

Vytvoří nový popisovač události, který je identický s existujícím popisovačem události dynamickým generováním informací popisovače ze zadané události na typu.

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 komponenty, ve které událost žije.

name
String

Název události.

type
Type

Typ delegáta, který zpracovává událost.

attributes
Attribute[]

Atributy této události.

Návraty

Objekt EventDescriptor , který je vázaný na typ.

Viz také

Platí pro