语言

ExceptionRegionEncoder.AddFilter(Int32, Int32, Int32, Int32, Int32) 方法

定义

添加错误子句。

public:
 System::Reflection::Metadata::Ecma335::ExceptionRegionEncoder AddFilter(int tryOffset, int tryLength, int handlerOffset, int handlerLength, int filterOffset);
public System.Reflection.Metadata.Ecma335.ExceptionRegionEncoder AddFilter(int tryOffset, int tryLength, int handlerOffset, int handlerLength, int filterOffset);
member this.AddFilter : int * int * int * int * int -> System.Reflection.Metadata.Ecma335.ExceptionRegionEncoder
Public Function AddFilter (tryOffset As Integer, tryLength As Integer, handlerOffset As Integer, handlerLength As Integer, filterOffset As Integer) As ExceptionRegionEncoder

参数

tryOffset
Int32

请尝试块开始偏移量。

tryLength
Int32

请尝试块长度。

handlerOffset
Int32

处理程序启动偏移量。

handlerLength
Int32

处理程序长度。

filterOffset
Int32

筛选器块的偏移量。

返回

下一个子句的编码器。

例外

tryOffset、 tryLength或 handlerOffsethandlerLength 范围不足。

方法正文未声明为具有异常区域。

适用于