ExceptionHandler ExceptionHandler ExceptionHandler ExceptionHandler Struct

定義

代表 IL 位元組陣列中要傳遞至方法的例外狀況處理常式,例如 SetMethodBody(Byte[], Int32, Byte[], IEnumerable<ExceptionHandler>, IEnumerable<Int32>)Represents an exception handler in a byte array of IL to be passed to a method such as 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>
type ExceptionHandler = struct
Public Structure ExceptionHandler
Implements IEquatable(Of ExceptionHandler)
繼承
ExceptionHandlerExceptionHandlerExceptionHandlerExceptionHandler
屬性
實作

建構函式

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

使用指定的參數,初始化 ExceptionHandler 類別的新執行個體。Initializes a new instance of the ExceptionHandler class with the specified parameters.

屬性

ExceptionTypeToken ExceptionTypeToken ExceptionTypeToken ExceptionTypeToken

取得這個處理常式所處理之例外狀況型別的權杖。Gets the token of the exception type handled by this handler.

FilterOffset FilterOffset FilterOffset FilterOffset

取得位元組位移,例外狀況處理常式保護的篩選程式碼從這裡開始。Gets the byte offset at which the filter code for the exception handler begins.

HandlerLength HandlerLength HandlerLength HandlerLength

取得例外狀況處理常式的長度,以位元組為單位。Gets the length, in bytes, of the exception handler.

HandlerOffset HandlerOffset HandlerOffset HandlerOffset

取得例外狀況處理常式的第一個指令的位元組位移。Gets the byte offset of the first instruction of the exception handler.

Kind Kind Kind Kind

取得值,表示這個物件所表示的例外狀況處理常式類型。Gets a value that represents the kind of exception handler this object represents.

TryLength TryLength TryLength TryLength

取得這個例外狀況處理常式所保護的程式碼的長度 (以位元組為單位)。Gets the length, in bytes, of the code protected by this exception handler.

TryOffset TryOffset TryOffset TryOffset

取得位元組位移,受到這個例外狀況處理常式保護的程式碼從這裡開始。Gets the byte offset at which the code that is protected by this exception handler begins.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

指出 ExceptionHandler 物件的這個執行個體是否等於指定的物件。Indicates whether this instance of the ExceptionHandler object is equal to a specified object.

Equals(ExceptionHandler) Equals(ExceptionHandler) Equals(ExceptionHandler) Equals(ExceptionHandler)

指出 ExceptionHandler 物件的這個執行個體是否等於另一個 ExceptionHandler 物件。Indicates whether this instance of the ExceptionHandler object is equal to another ExceptionHandler object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

運算子

Equality(ExceptionHandler, ExceptionHandler) Equality(ExceptionHandler, ExceptionHandler) Equality(ExceptionHandler, ExceptionHandler) Equality(ExceptionHandler, ExceptionHandler)

判斷 ExceptionHandler 的兩個指定執行個體是否相等。Determines whether two specified instances of ExceptionHandler are equal.

Inequality(ExceptionHandler, ExceptionHandler) Inequality(ExceptionHandler, ExceptionHandler) Inequality(ExceptionHandler, ExceptionHandler) Inequality(ExceptionHandler, ExceptionHandler)

判斷 ExceptionHandler 的兩個指定執行個體是否不相等。Determines whether two specified instances of ExceptionHandler are not equal.

適用於