ExceptionHandler ExceptionHandler ExceptionHandler ExceptionHandler Struct

定义

表示传递给方法(如 SetMethodBody(Byte[], Int32, Byte[], IEnumerable<ExceptionHandler>, IEnumerable<Int32>))的 IL 字节数组中的异常处理程序。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.

适用于