EventBuilder.SetRemoveOnMethod Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Sets the method used to unsubscribe to this event.
Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)
Syntax
'Declaration
<SecuritySafeCriticalAttribute> _
Public Sub SetRemoveOnMethod ( _
    mdBuilder As MethodBuilder _
)
[SecuritySafeCriticalAttribute]
public void SetRemoveOnMethod(
    MethodBuilder mdBuilder
)
Parameters
- mdBuilder
 Type: System.Reflection.Emit.MethodBuilder
 A MethodBuilder object that represents the method used to unsubscribe to this event.
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentNullException | mdBuilder is nulla null reference (Nothing in Visual Basic). | 
| InvalidOperationException | CreateType has been called on the enclosing type. | 
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.