ExceptionHandler 結構

定義

表示 IL 位元組陣列中要傳遞至方法的例外狀況處理程式,例如 SetMethodBody(Byte[], Int32, Byte[], IEnumerable<ExceptionHandler>, IEnumerable<Int32>)

public value class ExceptionHandler : IEquatable<System::Reflection::Emit::ExceptionHandler>
[System.Runtime.InteropServices.ComVisible(false)]
public struct ExceptionHandler : IEquatable<System.Reflection.Emit.ExceptionHandler>
[<System.Runtime.InteropServices.ComVisible(false)>]
type ExceptionHandler = struct
Public Structure ExceptionHandler
Implements IEquatable(Of ExceptionHandler)
繼承
ExceptionHandler
屬性
實作

建構函式

名稱 Description
ExceptionHandler(Int32, Int32, Int32, Int32, Int32, ExceptionHandlingClauseOptions, Int32)

初始化一個新的類別實例 ExceptionHandler ,並以指定參數進行。

屬性

名稱 Description
ExceptionTypeToken

取得此處理器處理的異常類型的標記。

FilterOffset

取得例外處理程式過濾碼起始的位元組偏移量。

HandlerLength

取得例外處理程序的長度(位元組)。

HandlerOffset

取得例外處理器第一條指令的位元組偏移量。

Kind

會得到一個代表該物件所代表的例外處理方式的值。

TryLength

取得由此例外處理器保護的程式碼長度(位元組)。

TryOffset

取得受此例外處理程式保護程式碼起始的位元組偏移量。

方法

名稱 Description
Equals(ExceptionHandler)

表示該物件的實例 ExceptionHandler 是否等於另一個 ExceptionHandler 物件。

Equals(Object)

表示該物件的實例 ExceptionHandler 是否等於特定物件。

GetHashCode()

做為預設雜湊函式。

操作員

名稱 Description
Equality(ExceptionHandler, ExceptionHandler)

判斷兩個指定的 實 ExceptionHandler 例是否相等。

Inequality(ExceptionHandler, ExceptionHandler)

判斷兩個指定的 實 ExceptionHandler 例是否不相等。

適用於