System.Reflection.ExceptionHandlingClauseOptions Enumeration

Identifies kinds of exception-handling clauses.


public enum ExceptionHandlingClauseOptions


To examine the exception-handling clauses in a method, obtain a System.Reflection.MethodInfo object and call the MethodBase.GetMethodBody method to obtain the method body. Use the MethodBody.ExceptionHandlingClauses property to obtain a list of System.Reflection.ExceptionHandlingClause objects.


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.


Member NameDescription

The clause accepts all exceptions that derive from a specified type.


The clause is executed if an exception occurs, but not on completion of normal control flow.


The clause contains user-specified instructions that determine whether the exception should be ignored (that is, whether normal execution should resume), be handled by the associated handler, or be passed on to the next clause.


The clause is executed whenever the try block exits, whether through normal control flow or because of an unhandled exception.


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