Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ILGenerator::BeginExceptFilterBlock Method ()

 

Begins an exception block for a filtered exception.

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

public:
virtual void BeginExceptFilterBlock()

Exception Condition
NotSupportedException

The Microsoft intermediate language (MSIL) being generated is not currently in an exception block.

-or-

This ILGenerator belongs to a DynamicMethod.

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. DynamicILInfo can be used to construct a dynamic method that uses filtered exception blocks.

.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show:
© 2017 Microsoft