TypeDescriptor.CreateEvent Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Létrehoz egy új eseményleírót, amely megegyezik egy meglévő eseményleíróval.
Túlterhelések
| Name | Description |
|---|---|
| CreateEvent(Type, EventDescriptor, Attribute[]) |
Létrehoz egy új eseményleírót, amely megegyezik egy meglévő eseményleíróval, amikor a meglévőt EventDescriptorátadja. |
| CreateEvent(Type, String, Type, Attribute[]) |
Létrehoz egy új eseményleírót, amely megegyezik egy meglévő eseményleíróval úgy, hogy dinamikusan generál leíró adatokat egy adott eseményből egy típuson. |
CreateEvent(Type, EventDescriptor, Attribute[])
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
Létrehoz egy új eseményleírót, amely megegyezik egy meglévő eseményleíróval, amikor a meglévőt EventDescriptorátadja.
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
Paraméterek
- componentType
- Type
Annak az összetevőnek a típusa, amelyhez létre kívánja hozni az új eseményt.
- oldEventDescriptor
- EventDescriptor
A meglévő eseményadatok.
- attributes
- Attribute[]
Az új attribútumok.
Válaszok
Egy új EventDescriptor , amely egyesítette a megadott metaadat-attribútumokat a meglévő metaadat-attribútumokkal.
Lásd még
A következőre érvényes:
CreateEvent(Type, String, Type, Attribute[])
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
- Forrás:
- TypeDescriptor.cs
Létrehoz egy új eseményleírót, amely megegyezik egy meglévő eseményleíróval úgy, hogy dinamikusan generál leíró adatokat egy adott eseményből egy típuson.
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
Paraméterek
- componentType
- Type
Az esemény által használt összetevő típusa.
- name
- String
Az esemény neve.
- type
- Type
Az eseményt kezelő meghatalmazott típusa.
- attributes
- Attribute[]
Az esemény attribútumai.
Válaszok
Egy EventDescriptor típushoz kötött.