ExceptionHandler Struktur
Definition
Stellt einen Ausnahmehandler in einem Byte-Array von IL dar, der an eine Methode wie z.B. SetMethodBody(Byte[], Int32, Byte[], IEnumerable<ExceptionHandler>, IEnumerable<Int32>) übergeben werden soll.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)
- Vererbung
- Attribute
- Implementiert
Konstruktoren
ExceptionHandler(Int32, Int32, Int32, Int32, Int32, ExceptionHandlingClauseOptions, Int32) |
Initialisiert eine neue Instanz der ExceptionHandler-Klasse mit den angegebenen Parametern.Initializes a new instance of the ExceptionHandler class with the specified parameters. |
Eigenschaften
ExceptionTypeToken |
Ruft das Token des Ausnahmetyps ab, der von diesem Handler behandelt wird.Gets the token of the exception type handled by this handler. |
FilterOffset |
Ruft den Byteoffset ab, an dem der Filtercode für den Ausnahmehandler startet.Gets the byte offset at which the filter code for the exception handler begins. |
HandlerLength |
Ruft die Länge des Ausnahmehandlers in Bytes ab.Gets the length, in bytes, of the exception handler. |
HandlerOffset |
Ruft den Byteoffset der ersten Anweisung des Ausnahmehandlers ab.Gets the byte offset of the first instruction of the exception handler. |
Kind |
Ruft einen Wert ab, der die Art des Ausnahmehandlers darstellt, den dieses Objekt darstellt.Gets a value that represents the kind of exception handler this object represents. |
TryLength |
Ruft die Länge (in Bytes) des Codes ab, der von diesem Ausnahmehandler geschützt wird.Gets the length, in bytes, of the code protected by this exception handler. |
TryOffset |
Ruft den Byteoffset ab, an dem der Code beginnt, der von diesem Ausnahmehandler geschützt wird.Gets the byte offset at which the code that is protected by this exception handler begins. |
Methoden
Equals(ExceptionHandler) |
Gibt an, ob diese Instanz des ExceptionHandler-Objekts gleich dem Wert eines anderen ExceptionHandler-Objekts ist.Indicates whether this instance of the ExceptionHandler object is equal to another ExceptionHandler object. |
Equals(Object) |
Gibt an, ob diese Instanz des ExceptionHandler-Objekts gleich einem angegebenen Objekt ist.Indicates whether this instance of the ExceptionHandler object is equal to a specified object. |
GetHashCode() |
Fungiert als Standardhashfunktion.Serves as the default hash function. |
Operatoren
Equality(ExceptionHandler, ExceptionHandler) |
Bestimmt, ob zwei angegebene Instanzen von ExceptionHandler gleich sind.Determines whether two specified instances of ExceptionHandler are equal. |
Inequality(ExceptionHandler, ExceptionHandler) |
Bestimmt, ob zwei angegebene Instanzen von ExceptionHandler nicht gleich sind.Determines whether two specified instances of ExceptionHandler are not equal. |