TypeDescriptor.CreateEvent Metoda

Definice

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

Přetížení

Name Description
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 .

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 typu.

CreateEvent(Type, EventDescriptor, Attribute[])

Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
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 .

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
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 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 pro tuto událost.

Návraty

Je svázaná EventDescriptor s typem.

Viz také

Platí pro