Export (0) Print
Expand All

EventBuilder.SetAddOnMethod Method

Sets the method used to subscribe to this event.

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

[SecuritySafeCriticalAttribute]
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.

ExceptionCondition
ArgumentNullException

mdBuilder is null.

InvalidOperationException

CreateType has been called on the enclosing type.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft