Share via


TypeDescriptor.CreateEvent Yöntem

Tanım

Mevcut bir olay tanımlayıcısı ile aynı olan yeni bir olay tanımlayıcısı oluşturur.

Aşırı Yüklemeler

CreateEvent(Type, EventDescriptor, Attribute[])

Mevcut olay tanımlayıcısı geçirildiğinde, mevcut olay tanımlayıcısı ile aynı olan yeni bir olay tanımlayıcısı EventDescriptoroluşturur.

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

Bir türdeki belirtilen olaydan dinamik olarak tanımlayıcı bilgileri oluşturarak mevcut olay tanımlayıcısı ile aynı olan yeni bir olay tanımlayıcısı oluşturur.

CreateEvent(Type, EventDescriptor, Attribute[])

Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs

Mevcut olay tanımlayıcısı geçirildiğinde, mevcut olay tanımlayıcısı ile aynı olan yeni bir olay tanımlayıcısı EventDescriptoroluşturur.

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

Parametreler

componentType
Type

Yeni olayın oluşturulacağı bileşenin türü.

oldEventDescriptor
EventDescriptor

Mevcut olay bilgileri.

attributes
Attribute[]

Yeni öznitelikler.

Döndürülenler

Belirtilen meta veri özniteliklerini mevcut meta veri öznitelikleriyle birleştirilen yeni EventDescriptor bir.

Ayrıca bkz.

Şunlara uygulanır

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

Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs
Kaynak:
TypeDescriptor.cs

Bir türdeki belirtilen olaydan dinamik olarak tanımlayıcı bilgileri oluşturarak mevcut olay tanımlayıcısı ile aynı olan yeni bir olay tanımlayıcısı oluşturur.

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

Parametreler

componentType
Type

Olayın yaşadığı bileşenin türü.

name
String

Olayın adı.

type
Type

Olayı işleyen temsilcinin türü.

attributes
Attribute[]

Bu olayın öznitelikleri.

Döndürülenler

Bir EventDescriptor türe bağlı olan.

Ayrıca bkz.

Şunlara uygulanır