TypeDescriptor.CreateEvent 메서드

정의

기존 이벤트 설명자와 동일한 새 이벤트 설명자를 만듭니다.

오버로드

CreateEvent(Type, EventDescriptor, Attribute[])

기존 EventDescriptor를 전달할 때 기존 이벤트 설명자와 동일한 새 이벤트 설명자를 만듭니다.

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

형식에 지정된 이벤트에서 설명자 정보를 동적으로 생성하여 기존 이벤트 설명자와 동일한 새 이벤트 설명자를 만듭니다.

CreateEvent(Type, EventDescriptor, Attribute[])

Source:
TypeDescriptor.cs
Source:
TypeDescriptor.cs
Source:
TypeDescriptor.cs

기존 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

매개 변수

componentType
Type

새 이벤트를 만들 구성 요소의 형식입니다.

oldEventDescriptor
EventDescriptor

기존 이벤트 정보입니다.

attributes
Attribute[]

새 특성입니다.

반환

지정된 메타데이터 특성과 기존 메타데이터 특성이 병합된 새 EventDescriptor입니다.

추가 정보

적용 대상

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

Source:
TypeDescriptor.cs
Source:
TypeDescriptor.cs
Source:
TypeDescriptor.cs

형식에 지정된 이벤트에서 설명자 정보를 동적으로 생성하여 기존 이벤트 설명자와 동일한 새 이벤트 설명자를 만듭니다.

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

매개 변수

componentType
Type

이벤트를 만들 구성 요소의 형식입니다.

name
String

이벤트의 이름입니다.

type
Type

이벤트를 처리하는 대리자 형식입니다.

attributes
Attribute[]

이 이벤트에 대한 특성입니다.

반환

형식에 바인딩되는 EventDescriptor 입니다.

추가 정보

적용 대상