Mono Class Library: System.Reflection.Emit.ILGenerator Overview | Members

System.Reflection.Emit.ILGenerator.BeginCatchBlock Method

Starts a handler for a particular exception.

public virtual void BeginCatchBlock (Type exceptionType)

Parameters

exceptionType
The exception to be caught by the following code.

Remarks

Any exceptions thrown in between the call to ILGenerator.BeginExceptionBlock() of a type derived from the exceptionType will be handled by the code following this point in the generated IL stream.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0