System.Reflection.ExceptionHandlingClause Class

Represents a clause in a structured exception-handling block.

See Also: ExceptionHandlingClause Members


public class ExceptionHandlingClause


The System.Reflection.ExceptionHandlingClause class provides information about the clauses in a try…catch…finally block (Try…Catch…Finally in Visual Basic). To get a list of exception-handling clauses in a method, obtain a System.Reflection.MethodInfo that represents the method. Use the MethodBase.GetMethodBody method to obtain a System.Reflection.MethodBody object, and then use the MethodBody.ExceptionHandlingClauses property to get the list of clauses.


Working with exception-handling clauses requires a thorough understanding of metadata and Microsoft intermediate language (MSIL) instruction formats. Information can be found in the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics" and "Partition III: CIL Instruction Set". The documentation is available online; see tp:// on MSDN and tp:// on the Ecma International Web site.


Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions:,
Since: .NET 2.0