ExceptionHandler Struktura
Definicja
Reprezentuje procedurę obsługi wyjątków w tablicy bajtowej IL, która ma zostać przeniesiona do metody, SetMethodBody(Byte[], Int32, Byte[], IEnumerable<ExceptionHandler>, IEnumerable<Int32>)takiej jak.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)
- Dziedziczenie
- Atrybuty
- Implementuje
Konstruktory
ExceptionHandler(Int32, Int32, Int32, Int32, Int32, ExceptionHandlingClauseOptions, Int32) |
Inicjuje nowe wystąpienie ExceptionHandler klasy z określonymi parametrami.Initializes a new instance of the ExceptionHandler class with the specified parameters. |
Właściwości
ExceptionTypeToken |
Pobiera token typu wyjątku obsługiwanego przez ten program obsługi.Gets the token of the exception type handled by this handler. |
FilterOffset |
Pobiera przesunięcie bajtu, w którym rozpoczyna się kod filtru dla programu obsługi wyjątków.Gets the byte offset at which the filter code for the exception handler begins. |
HandlerLength |
Pobiera długość (w bajtach) programu obsługi wyjątków.Gets the length, in bytes, of the exception handler. |
HandlerOffset |
Pobiera przesunięcie bajtów pierwszej instrukcji programu obsługi wyjątków.Gets the byte offset of the first instruction of the exception handler. |
Kind |
Pobiera wartość reprezentującą rodzaj programu obsługi wyjątków, który reprezentuje ten obiekt.Gets a value that represents the kind of exception handler this object represents. |
TryLength |
Pobiera długość (w bajtach) kodu chronionego przez tę procedurę obsługi wyjątków.Gets the length, in bytes, of the code protected by this exception handler. |
TryOffset |
Pobiera przesunięcie bajtu, w którym rozpoczyna się kod chroniony przez tę procedurę obsługi wyjątków.Gets the byte offset at which the code that is protected by this exception handler begins. |
Metody
Equals(ExceptionHandler) |
Wskazuje, czy to wystąpienie ExceptionHandler obiektu jest równe innemu ExceptionHandler obiektowi.Indicates whether this instance of the ExceptionHandler object is equal to another ExceptionHandler object. |
Equals(Object) |
Wskazuje, czy to wystąpienie ExceptionHandler obiektu jest równe podanemu obiektowi.Indicates whether this instance of the ExceptionHandler object is equal to a specified object. |
GetHashCode() |
Służy jako domyślna funkcja skrótu.Serves as the default hash function. |
Operatory
Equality(ExceptionHandler, ExceptionHandler) |
Określa, ExceptionHandler czy dwa określone wystąpienia są równe.Determines whether two specified instances of ExceptionHandler are equal. |
Inequality(ExceptionHandler, ExceptionHandler) |
Określa, ExceptionHandler czy dwa określone wystąpienia nie są równe.Determines whether two specified instances of ExceptionHandler are not equal. |