TypeDescriptor.CreateEvent 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
기존 이벤트 설명자와 동일한 새 이벤트 설명자를 만듭니다.
오버로드
| Name | Description |
|---|---|
| CreateEvent(Type, EventDescriptor, Attribute[]) |
기존 EventDescriptor이벤트 설명자를 전달한 경우 기존 이벤트 설명자와 동일한 새 이벤트 설명자를 만듭니다. |
| CreateEvent(Type, String, Type, Attribute[]) |
형식의 지정된 이벤트에서 설명자 정보를 동적으로 생성하여 기존 이벤트 설명자와 동일한 새 이벤트 설명자를 만듭니다. |
CreateEvent(Type, EventDescriptor, Attribute[])
기존 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[])
형식의 지정된 이벤트에서 설명자 정보를 동적으로 생성하여 기존 이벤트 설명자와 동일한 새 이벤트 설명자를 만듭니다.
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 형식에 바인딩된 값입니다.