ILGenerator.BeginExceptFilterBlock Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Begins an exception block for a filtered exception.
Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Overridable Sub BeginExceptFilterBlock
public virtual void BeginExceptFilterBlock()
Exceptions
Exception | Condition |
---|---|
NotSupportedException | The Microsoft intermediate language (MSIL) that is being generated is not currently in an exception block. -or- This ILGenerator belongs to a DynamicMethod. |
Remarks
Emits a branch instruction to the end of the current exception block.
If the current ILGenerator is associated with a DynamicMethod object, emitting filtered exception blocks is not supported.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.