TypeBuilder.DefineEvent(String, EventAttributes, Type) TypeBuilder.DefineEvent(String, EventAttributes, Type) TypeBuilder.DefineEvent(String, EventAttributes, Type) TypeBuilder.DefineEvent(String, EventAttributes, Type) Method

Definition

Adds a new event to the type, with the given name, attributes and event type.

public:
 System::Reflection::Emit::EventBuilder ^ DefineEvent(System::String ^ name, System::Reflection::EventAttributes attributes, Type ^ eventtype);
public System.Reflection.Emit.EventBuilder DefineEvent (string name, System.Reflection.EventAttributes attributes, Type eventtype);
member this.DefineEvent : string * System.Reflection.EventAttributes * Type -> System.Reflection.Emit.EventBuilder
Public Function DefineEvent (name As String, attributes As EventAttributes, eventtype As Type) As EventBuilder

Parameters

name
String String String String

The name of the event. name cannot contain embedded nulls.

attributes
EventAttributes EventAttributes EventAttributes EventAttributes

The attributes of the event.

eventtype
Type Type Type Type

The type of the event.

Returns

Exceptions

Applies to