EventBuilder.SetAddOnMethod Method (MethodBuilder)

 

Sets the method used to subscribe to this event.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public void SetAddOnMethod(
	MethodBuilder mdBuilder
)

Parameters

mdBuilder
Type: System.Reflection.Emit.MethodBuilder

A MethodBuilder object that represents the method used to subscribe to this event.

Exception Condition
ArgumentNullException

mdBuilder is null.

InvalidOperationException

CreateType has been called on the enclosing type.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show: