ExceptionHandler Структура
Определение
Представляет обработчик исключений в массиве байтов 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)
- Наследование
- Атрибуты
- Реализации
Конструкторы
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. |