ExceptionRegion 结构
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public value class ExceptionRegion
C#
public struct ExceptionRegion
C#
public readonly struct ExceptionRegion
type ExceptionRegion = struct
Public Structure ExceptionRegion
- 继承
Catch |
如果该区域表示 catch,则获取 TypeRef、TypeDef 或 TypeSpec 句柄;否则获取 nil 令牌( |
Filter |
获取筛选器块起始处的 IL 偏移量,如果该区域不是筛选器,则获取 -1。 |
Handler |
获取异常处理程序的长度(以字节为单位)。 |
Handler |
获取异常处理程序的初始 IL 偏移量。 |
Kind | |
Try |
获取 try 块的长度(以字节为单位)。 |
Try |
获取 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 |