Bewerken

Delen via


ExceptionHandler Struct

Definition

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)
Inheritance
ExceptionHandler
Attributes
Implements

Constructors

ExceptionHandler(Int32, Int32, Int32, Int32, Int32, ExceptionHandlingClauseOptions, Int32)

Initializes a new instance of the ExceptionHandler class with the specified parameters.

Properties

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.

Methods

Equals(ExceptionHandler)

Indicates whether this instance of the ExceptionHandler object is equal to another ExceptionHandler object.

Equals(Object)

Indicates whether this instance of the ExceptionHandler object is equal to a specified object.

GetHashCode()

Serves as the default hash function.

Operators

Equality(ExceptionHandler, ExceptionHandler)

Determines whether two specified instances of ExceptionHandler are equal.

Inequality(ExceptionHandler, ExceptionHandler)

Determines whether two specified instances of ExceptionHandler are not equal.

Applies to