EventBuilder 클래스

정의

클래스에 대한 이벤트를 정의합니다.

public ref class EventBuilder abstract
public ref class EventBuilder sealed
public ref class EventBuilder sealed : System::Runtime::InteropServices::_EventBuilder
public abstract class EventBuilder
public sealed class EventBuilder
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
public sealed class EventBuilder : System.Runtime.InteropServices._EventBuilder
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class EventBuilder : System.Runtime.InteropServices._EventBuilder
type EventBuilder = class
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
type EventBuilder = class
    interface _EventBuilder
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type EventBuilder = class
    interface _EventBuilder
Public MustInherit Class EventBuilder
Public NotInheritable Class EventBuilder
Public NotInheritable Class EventBuilder
Implements _EventBuilder
상속
EventBuilder
특성
구현

설명

EventBuilder 은 항상 .와 TypeBuilder연결됩니다. TypeBuilder.DefineEvent 메서드는 클라이언트에 새 EventBuilder 항목을 반환합니다.

생성자

Name Description
EventBuilder()

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

메서드

Name Description
AddOtherMethod(MethodBuilder)

이 이벤트와 연결된 "기타" 메서드 중 하나를 추가합니다. "기타" 메서드는 이벤트와 연결된 "on" 및 "raise" 메서드 이외의 메서드입니다. 이 함수는 여러 번 호출하여 "기타" 메서드를 많이 추가할 수 있습니다.

AddOtherMethodCore(MethodBuilder)

파생 클래스에서 재정의되는 경우 이 이벤트와 연결된 "other" 메서드 중 하나를 추가합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
GetEventToken()

이 이벤트에 대한 토큰을 반환합니다.

GetHashCode()

기본 해시 함수로 사용됩니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
SetAddOnMethod(MethodBuilder)

이 이벤트를 구독하는 데 사용되는 메서드를 설정합니다.

SetAddOnMethodCore(MethodBuilder)

파생 클래스에서 재정의되는 경우 이 이벤트를 구독하는 데 사용되는 메서드를 설정합니다.

SetCustomAttribute(ConstructorInfo, Byte[])

지정된 사용자 지정 특성 Blob을 사용하여 사용자 지정 특성을 설정합니다.

SetCustomAttribute(CustomAttributeBuilder)

사용자 지정 특성 작성기를 사용하여 사용자 지정 특성을 설정합니다.

SetCustomAttributeCore(ConstructorInfo, ReadOnlySpan<Byte>)

파생 클래스에서 재정의되는 경우 이 어셈블리에서 사용자 지정 특성을 설정합니다.

SetRaiseMethod(MethodBuilder)

이 이벤트를 발생 시에 사용 하는 메서드를 설정 합니다.

SetRaiseMethodCore(MethodBuilder)

파생 클래스에서 재정의되는 경우 이 이벤트를 발생 시에 사용하는 메서드를 설정합니다.

SetRemoveOnMethod(MethodBuilder)

이 이벤트를 구독 취소하는 데 사용되는 메서드를 설정합니다.

SetRemoveOnMethodCore(MethodBuilder)

파생 클래스에서 재정의되는 경우 이 이벤트를 구독 취소하는 데 사용되는 메서드를 설정합니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

명시적 인터페이스 구현

Name Description
_EventBuilder.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

이름 집합을 해당 디스패치 식별자 집합에 매핑합니다.

_EventBuilder.GetTypeInfo(UInt32, UInt32, IntPtr)

인터페이스의 형식 정보를 가져오는 데 사용할 수 있는 개체의 형식 정보를 검색합니다.

_EventBuilder.GetTypeInfoCount(UInt32)

개체가 제공하는 형식 정보 인터페이스의 수를 검색합니다(0 또는 1).

_EventBuilder.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

개체에 의해 노출되는 속성 및 메서드에 대한 액세스를 제공합니다.

적용 대상