EventBuilder EventBuilder EventBuilder EventBuilder Class

Definition

Defines events for a class.

public ref class EventBuilder sealed : 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
    interface _EventBuilder
Public NotInheritable Class EventBuilder
Implements _EventBuilder
Inheritance
EventBuilderEventBuilderEventBuilderEventBuilder
Attributes
Implements

Remarks

An EventBuilder is always associated with a TypeBuilder. The TypeBuilder.DefineEvent method will return a new EventBuilder to a client.

Constructors

EventBuilder() EventBuilder() EventBuilder() EventBuilder()

Methods

AddOtherMethod(MethodBuilder) AddOtherMethod(MethodBuilder) AddOtherMethod(MethodBuilder) AddOtherMethod(MethodBuilder)

Adds one of the "other" methods associated with this event. "Other" methods are methods other than the "on" and "raise" methods associated with an event. This function can be called many times to add as many "other" methods.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEventToken() GetEventToken() GetEventToken() GetEventToken()

Returns the token for this event.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetAddOnMethod(MethodBuilder) SetAddOnMethod(MethodBuilder) SetAddOnMethod(MethodBuilder) SetAddOnMethod(MethodBuilder)

Sets the method used to subscribe to this event.

SetCustomAttribute(ConstructorInfo, Byte[]) SetCustomAttribute(ConstructorInfo, Byte[]) SetCustomAttribute(ConstructorInfo, Byte[]) SetCustomAttribute(ConstructorInfo, Byte[])

Set a custom attribute using a specified custom attribute blob.

SetCustomAttribute(CustomAttributeBuilder) SetCustomAttribute(CustomAttributeBuilder) SetCustomAttribute(CustomAttributeBuilder) SetCustomAttribute(CustomAttributeBuilder)

Sets a custom attribute using a custom attribute builder.

SetRaiseMethod(MethodBuilder) SetRaiseMethod(MethodBuilder) SetRaiseMethod(MethodBuilder) SetRaiseMethod(MethodBuilder)

Sets the method used to raise this event.

SetRemoveOnMethod(MethodBuilder) SetRemoveOnMethod(MethodBuilder) SetRemoveOnMethod(MethodBuilder) SetRemoveOnMethod(MethodBuilder)

Sets the method used to unsubscribe to this event.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

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

Maps a set of names to a corresponding set of dispatch identifiers.

_EventBuilder.GetTypeInfo(UInt32, UInt32, IntPtr) _EventBuilder.GetTypeInfo(UInt32, UInt32, IntPtr) _EventBuilder.GetTypeInfo(UInt32, UInt32, IntPtr) _EventBuilder.GetTypeInfo(UInt32, UInt32, IntPtr)

Retrieves the type information for an object, which can then be used to get the type information for an interface.

_EventBuilder.GetTypeInfoCount(UInt32) _EventBuilder.GetTypeInfoCount(UInt32) _EventBuilder.GetTypeInfoCount(UInt32) _EventBuilder.GetTypeInfoCount(UInt32)

Retrieves the number of type information interfaces that an object provides (either 0 or 1).

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

Provides access to properties and methods exposed by an object.

Applies to