ExceptionRegion 结构

定义

C#
public struct ExceptionRegion
C#
public readonly struct ExceptionRegion
继承
ExceptionRegion

属性

CatchType

如果该区域表示 catch,则获取 TypeRef、TypeDef 或 TypeSpec 句柄;否则获取 nil 令牌(default(EntityHandle))。

FilterOffset

获取筛选器块起始处的 IL 偏移量,如果该区域不是筛选器,则获取 -1。

HandlerLength

获取异常处理程序的长度(以字节为单位)。

HandlerOffset

获取异常处理程序的初始 IL 偏移量。

Kind
TryLength

获取 try 块的长度(以字节为单位)。

TryOffset

获取 try 块的初始 IL 偏移量。

适用于

产品 版本
.NET Core 1.0, 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)
UWP 10.0