語言

ExceptionRegionEncoder.Add 方法

定義

新增例外條款。

public System.Reflection.Metadata.Ecma335.ExceptionRegionEncoder Add(System.Reflection.Metadata.ExceptionRegionKind kind, int tryOffset, int tryLength, int handlerOffset, int handlerLength, System.Reflection.Metadata.EntityHandle catchType = default, int filterOffset = 0);
member this.Add : System.Reflection.Metadata.ExceptionRegionKind * int * int * int * int * System.Reflection.Metadata.EntityHandle * int -> System.Reflection.Metadata.Ecma335.ExceptionRegionEncoder
Public Function Add (kind As ExceptionRegionKind, tryOffset As Integer, tryLength As Integer, handlerOffset As Integer, handlerLength As Integer, Optional catchType As EntityHandle = Nothing, Optional filterOffset As Integer = 0) As ExceptionRegionEncoder

參數

kind
ExceptionRegionKind

條款類型。

tryOffset
Int32

試試看方塊起始偏移。

tryLength
Int32

試試看區塊長度。

handlerOffset
Int32

訓練員起始偏移。

handlerLength
Int32

訓練犬長度。

catchType
EntityHandle

TypeDefinitionHandle TypeReferenceHandle,或 TypeSpecificationHandle,或 若 不是 Catch,則 nil。kind

filterOffset
Int32

濾波器區塊的偏移量,若 kind 非 Filter則為 0。

傳回

下一節的編碼器。

例外狀況

catchType 無效。

kind 值為無效。

-或-

tryOffset, tryLength, , handlerOffset, handlerLength 或超出範圍。

方法本體未被宣告具有例外區域。

適用於