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
屬性
實作

建構函式

ExceptionHandler(Int32, Int32, Int32, Int32, Int32, ExceptionHandlingClauseOptions, Int32)

使用指定的參數,初始化 ExceptionHandler 類別的新執行個體。

屬性

ExceptionTypeToken

取得這個處理常式所處理之例外狀況型別的權杖。

FilterOffset

取得位元組位移,例外狀況處理常式保護的篩選程式碼從這裡開始。

HandlerLength

取得例外狀況處理常式的長度,以位元組為單位。

HandlerOffset

取得例外狀況處理常式的第一個指令的位元組位移。

Kind

取得值,表示這個物件所表示的例外狀況處理常式類型。

TryLength

取得這個例外狀況處理常式所保護的程式碼的長度 (以位元組為單位)。

TryOffset

取得位元組位移,受到這個例外狀況處理常式保護的程式碼從這裡開始。

方法

Equals(ExceptionHandler)

指出 ExceptionHandler 物件的這個執行個體是否等於另一個 ExceptionHandler 物件。

Equals(Object)

指出 ExceptionHandler 物件的這個執行個體是否等於指定的物件。

GetHashCode()

做為預設雜湊函式。

運算子

Equality(ExceptionHandler, ExceptionHandler)

判斷 ExceptionHandler 的兩個指定執行個體是否相等。

Inequality(ExceptionHandler, ExceptionHandler)

判斷 ExceptionHandler 的兩個指定執行個體是否不相等。

適用於