EventBuilder EventBuilder EventBuilder EventBuilder Class

Definición

Define los eventos para una clase.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
Herencia
EventBuilderEventBuilderEventBuilderEventBuilder
Atributos
Implementaciones

Comentarios

Siempre se asocia TypeBuildera. EventBuilderAn EventBuilder is always associated with a TypeBuilder. El método TypeBuilder. DefineEvent devolverá un EventBuilder nuevo a un cliente.The TypeBuilder.DefineEvent method will return a new EventBuilder to a client.

Constructores

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

Métodos

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

Agrega alguno de los "otros" métodos asociados a este evento.Adds one of the "other" methods associated with this event. Cuando se habla de "otros" métodos, se hace referencia a métodos distintos de los métodos "on" y "raise" que están asociados a un evento."Other" methods are methods other than the "on" and "raise" methods associated with an event. Se puede llamar a esta función numerosas veces para agregar todos los "otros" métodos que se desee.This function can be called many times to add as many "other" methods.

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

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

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

Devuelve el símbolo (token) para este evento.Returns the token for this event.

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

Sirve como la función hash predeterminada.Serves as the default hash function.

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

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

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

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

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

Establece el método que se utiliza para suscribirse a este evento.Sets the method used to subscribe to this event.

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

Establezca un atributo personalizado mediante el objeto binario de atributo personalizado especificado.Set a custom attribute using a specified custom attribute blob.

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

Establece un atributo personalizado mediante un generador de atributos personalizados.Sets a custom attribute using a custom attribute builder.

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

Establece el método que se utiliza para generar este evento.Sets the method used to raise this event.

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

Establece el método que se utiliza para cancelar la suscripción a este evento.Sets the method used to unsubscribe to this event.

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

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)

Implementaciones de interfaz explícitas

_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)

Asigna un conjunto de nombres a un conjunto correspondiente de identificadores de envío.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)

Recupera la información de tipo de un objeto, que se puede usar después para obtener la información de tipo de una interfaz.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)

Recupera el número de interfaces de información de tipo que proporciona un objeto (0 ó 1).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)

Proporciona acceso a las propiedades y los métodos expuestos por un objeto.Provides access to properties and methods exposed by an object.

Se aplica a