System.Reflection.Emit.DynamicILInfo.SetExceptions Method

Sets the exception metadata for the associated dynamic method.

Syntax

public void SetExceptions (byte[] exceptions)

Parameters

exceptions
An array that contains the exception metadata.

Remarks

The exception metadata for a method defines the location and size of all try, catch, finally, filter, and fault blocks. For information on the layout of this metadata, see the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics". The documentation is available online; see tp://go.microsoft.com/fwlink/?LinkID=99212 on MSDN and tp://go.microsoft.com/fwlink/?LinkID=65552 on the Ecma International Web site.

Requirements

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