ExceptionHandler 结构
定义
表示传递给方法(如 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>
[<System.Runtime.InteropServices.ComVisible(false)>]
type ExceptionHandler = struct
Public Structure ExceptionHandler
Implements IEquatable(Of ExceptionHandler)
- 继承
- 属性
- 实现
构造函数
ExceptionHandler(Int32, Int32, Int32, Int32, Int32, ExceptionHandlingClauseOptions, Int32) |
使用指定的参数初始化 ExceptionHandler 类的新实例。Initializes a new instance of the ExceptionHandler class with the specified parameters. |
属性
ExceptionTypeToken |
获取该处理程序处理的异常标记类型。Gets the token of the exception type handled by this handler. |
FilterOffset |
获取此异常处理程序的筛选器代码开头的字节偏移量。Gets the byte offset at which the filter code for the exception handler begins. |
HandlerLength |
获取异常处理的长度(以字节表示)。Gets the length, in bytes, of the exception handler. |
HandlerOffset |
获取此异常处理程序的首次说明的字节偏移量。Gets the byte offset of the first instruction of the exception handler. |
Kind |
获取表示此对象表示的这类异常处理的值。Gets a value that represents the kind of exception handler this object represents. |
TryLength |
获取由该异常处理程序所保护的代码长度,以字节为单位。Gets the length, in bytes, of the code protected by this exception handler. |
TryOffset |
获取此异常处理程序保护的代码开头的字节偏移量。Gets the byte offset at which the code that is protected by this exception handler begins. |
方法
Equals(ExceptionHandler) |
指示 ExceptionHandler 对象的实例是否等同于另一个 ExceptionHandler 对象的实例。Indicates whether this instance of the ExceptionHandler object is equal to another ExceptionHandler object. |
Equals(Object) |
指示此实例是否与指定的ExceptionHandler对象相等。Indicates whether this instance of the ExceptionHandler object is equal to a specified object. |
GetHashCode() |
用作默认哈希函数。Serves as the default hash function. |
运算符
Equality(ExceptionHandler, ExceptionHandler) |
确定 ExceptionHandler 的两个指定的实例是否相等。Determines whether two specified instances of ExceptionHandler are equal. |
Inequality(ExceptionHandler, ExceptionHandler) |
确定 ExceptionHandler 的两个指定的实例是否不等。Determines whether two specified instances of ExceptionHandler are not equal. |