ExceptionRegionEncoder.AddFilter(Int32, Int32, Int32, Int32, Int32) Method

Definition

Adds a fault clause.

C#
public System.Reflection.Metadata.Ecma335.ExceptionRegionEncoder AddFilter(int tryOffset, int tryLength, int handlerOffset, int handlerLength, int filterOffset);

Parameters

tryOffset
Int32

Try block start offset.

tryLength
Int32

Try block length.

handlerOffset
Int32

Handler start offset.

handlerLength
Int32

Handler length.

filterOffset
Int32

Offset of the filter block.

Returns

Encoder for the next clause.

Exceptions

tryOffset, tryLength, handlerOffset or handlerLength is out of range.

Method body was not declared to have exception regions.

Applies to

Produkt Versioner
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)