ExceptionRegionEncoder.Add 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
新增例外條款。
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
傳回
下一節的編碼器。
例外狀況
catchType 無效。
kind 值為無效。
-或-
tryOffset, tryLength, , handlerOffset, handlerLength 或超出範圍。
方法本體未被宣告具有例外區域。