System.Reflection.Emit.DynamicILInfo.SetExceptions Method

Sets the exception metadata for the associated dynamic method.

Syntax

[System.CLSCompliant(false)]
public void SetExceptions (byte* exceptions, int exceptionsSize)

Parameters

exceptions
A pointer to a byte array containing the exception metadata.
exceptionsSize
The number of bytes of 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" and "Partition III: CIL Instruction Set". 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