ExceptionRegion ExceptionRegion ExceptionRegion ExceptionRegion Struct

定義

public value class ExceptionRegion
public struct ExceptionRegion
type ExceptionRegion = struct
Public Structure ExceptionRegion
繼承
ExceptionRegionExceptionRegionExceptionRegionExceptionRegion

屬性

CatchType CatchType CatchType CatchType

如果區域表示 Catch 取得 TypeRef、TypeDef 或 TypeSpec 控制代碼,如果是其他狀況則取得 nil 語彙基元 (default(EntityHandle))。Gets a TypeRef, TypeDef, or TypeSpec handle if the region represents a catch, or a nil token otherwise (default(EntityHandle)).

FilterOffset FilterOffset FilterOffset FilterOffset

取得篩選條件區塊開頭的 IL 位移,如果該區域不是篩選條件,則為 -1。Gets the IL offset of the start of the filter block, or -1 if the region is not a filter.

HandlerLength HandlerLength HandlerLength HandlerLength

取得例外狀況處理常式的長度,以位元組為單位。Gets the length in bytes of the exception handler.

HandlerOffset HandlerOffset HandlerOffset HandlerOffset

取得例外狀況處理常式的起始 IL 位移。Gets the starting IL offset of the exception handler.

Kind Kind Kind Kind
TryLength TryLength TryLength TryLength

取得 try 區塊的長度,以位元組為單位。Gets the length in bytes of the try block.

TryOffset TryOffset TryOffset TryOffset

取得 try 區塊的起始 IL 長度。Gets the starting IL offset of the try block.

適用於