ExceptionRegionEncoder.AddCatch 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
新增了過錯條款。
public:
System::Reflection::Metadata::Ecma335::ExceptionRegionEncoder AddCatch(int tryOffset, int tryLength, int handlerOffset, int handlerLength, System::Reflection::Metadata::EntityHandle catchType);
public System.Reflection.Metadata.Ecma335.ExceptionRegionEncoder AddCatch(int tryOffset, int tryLength, int handlerOffset, int handlerLength, System.Reflection.Metadata.EntityHandle catchType);
member this.AddCatch : int * int * int * int * System.Reflection.Metadata.EntityHandle -> System.Reflection.Metadata.Ecma335.ExceptionRegionEncoder
Public Function AddCatch (tryOffset As Integer, tryLength As Integer, handlerOffset As Integer, handlerLength As Integer, catchType As EntityHandle) As ExceptionRegionEncoder
參數
- tryOffset
- Int32
試試看方塊起始偏移。
- tryLength
- Int32
試試看區塊長度。
- handlerOffset
- Int32
訓練員起始偏移。
- handlerLength
- Int32
訓練犬長度。
傳回
下一節的編碼器。
例外狀況
catchType 無效。
tryOffset, tryLength, 或 handlerOffsethandlerLength 超出範圍。
方法本體未被宣告具有例外區域。