다음을 통해 공유


EventDescriptorCollection 생성자

정의

EventDescriptorCollection 클래스의 새 인스턴스를 초기화합니다.

오버로드

Name Description
EventDescriptorCollection(EventDescriptor[])

지정된 개체 배열 EventDescriptorEventDescriptorCollection 사용하여 클래스의 새 인스턴스를 초기화합니다.

EventDescriptorCollection(EventDescriptor[], Boolean)

지정된 개체 배열 EventDescriptorEventDescriptorCollection 사용하여 클래스의 새 인스턴스를 초기화합니다. 컬렉션은 선택적으로 읽기 전용입니다.

EventDescriptorCollection(EventDescriptor[])

Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs

지정된 개체 배열 EventDescriptorEventDescriptorCollection 사용하여 클래스의 새 인스턴스를 초기화합니다.

public:
 EventDescriptorCollection(cli::array <System::ComponentModel::EventDescriptor ^> ^ events);
public EventDescriptorCollection(System.ComponentModel.EventDescriptor[]? events);
public EventDescriptorCollection(System.ComponentModel.EventDescriptor[] events);
new System.ComponentModel.EventDescriptorCollection : System.ComponentModel.EventDescriptor[] -> System.ComponentModel.EventDescriptorCollection
Public Sub New (events As EventDescriptor())

매개 변수

events
EventDescriptor[]

이 컬렉션에 대한 이벤트를 제공하는 형식 EventDescriptor 의 배열입니다.

예제

다음 코드 예제에서는 에 이벤트를 button1사용 하 여 새 EventDescriptorCollection 클래스를 만듭니다. 폼에서 button1 인스턴스화해야 합니다.

EventDescriptorCollection^ events = TypeDescriptor::GetEvents( button1 );
_ = TypeDescriptor.GetEvents(button1);
Dim events As EventDescriptorCollection = TypeDescriptor.GetEvents(button1)

설명

매개 변수가 events 비어 있으면 이 생성자는 빈 EventDescriptorCollection 클래스를 만듭니다.

이 멤버에 적용된 특성의 HostProtectionAttribute 속성 값Synchronization은 다음과 같습니다Resources. 데스크톱 애플리케이션에는 HostProtectionAttribute 영향을 주지 않습니다(일반적으로 아이콘을 두 번 클릭하거나 명령을 입력하거나 브라우저에서 URL을 입력하여 시작됨). 자세한 내용은 클래스 또는 SQL Server 프로그래밍 및 호스트 보호 특성을 참조 HostProtectionAttribute 하세요.

추가 정보

적용 대상

EventDescriptorCollection(EventDescriptor[], Boolean)

Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs
Source:
EventDescriptorCollection.cs

지정된 개체 배열 EventDescriptorEventDescriptorCollection 사용하여 클래스의 새 인스턴스를 초기화합니다. 컬렉션은 선택적으로 읽기 전용입니다.

public:
 EventDescriptorCollection(cli::array <System::ComponentModel::EventDescriptor ^> ^ events, bool readOnly);
public EventDescriptorCollection(System.ComponentModel.EventDescriptor[]? events, bool readOnly);
public EventDescriptorCollection(System.ComponentModel.EventDescriptor[] events, bool readOnly);
new System.ComponentModel.EventDescriptorCollection : System.ComponentModel.EventDescriptor[] * bool -> System.ComponentModel.EventDescriptorCollection
Public Sub New (events As EventDescriptor(), readOnly As Boolean)

매개 변수

events
EventDescriptor[]

이 컬렉션에 대한 이벤트를 제공하는 형식 EventDescriptor 의 배열입니다.

readOnly
Boolean

true읽기 전용 컬렉션을 지정하려면 입니다. 그렇지 않으면 . false

예제

다음 코드 예제에서는 에 이벤트를 button1사용 하 여 새 EventDescriptorCollection 클래스를 만듭니다. 폼에서 button1 인스턴스화해야 합니다.

EventDescriptorCollection^ events = TypeDescriptor::GetEvents( button1 );
_ = TypeDescriptor.GetEvents(button1);
Dim events As EventDescriptorCollection = TypeDescriptor.GetEvents(button1)

설명

매개 변수가 events 비어 있으면 이 생성자는 빈 EventDescriptorCollection 클래스를 만듭니다.

메모

이 클래스에 적용된 특성에는 HostProtectionAttribute 다음과 같은 Resources 속성 값 Synchronization이 있습니다. 데스크톱 애플리케이션에는 HostProtectionAttribute 영향을 주지 않습니다(일반적으로 아이콘을 두 번 클릭하거나 명령을 입력하거나 브라우저에서 URL을 입력하여 시작됨). 자세한 내용은 클래스 또는 SQL Server 프로그래밍 및 호스트 보호 특성을 참조 HostProtectionAttribute 하세요.

추가 정보

적용 대상