ExceptionHandler ExceptionHandler ExceptionHandler 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>
type ExceptionHandler = struct
Public Structure ExceptionHandler
Implements IEquatable(Of ExceptionHandler)
Inheritance
ExceptionHandlerExceptionHandlerExceptionHandlerExceptionHandler
Attributes
Implements

Constructors

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

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

Properties

ExceptionTypeToken ExceptionTypeToken ExceptionTypeToken ExceptionTypeToken

Gets the token of the exception type handled by this handler.

FilterOffset FilterOffset FilterOffset FilterOffset

Gets the byte offset at which the filter code for the exception handler begins.

HandlerLength HandlerLength HandlerLength HandlerLength

Gets the length, in bytes, of the exception handler.

HandlerOffset HandlerOffset HandlerOffset HandlerOffset

Gets the byte offset of the first instruction of the exception handler.

Kind Kind Kind Kind

Gets a value that represents the kind of exception handler this object represents.

TryLength TryLength TryLength TryLength

Gets the length, in bytes, of the code protected by this exception handler.

TryOffset TryOffset TryOffset TryOffset

Gets the byte offset at which the code that is protected by this exception handler begins.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

Equals(ExceptionHandler) Equals(ExceptionHandler) Equals(ExceptionHandler) Equals(ExceptionHandler)

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

Operators

Equality(ExceptionHandler, ExceptionHandler) Equality(ExceptionHandler, ExceptionHandler) Equality(ExceptionHandler, ExceptionHandler) Equality(ExceptionHandler, ExceptionHandler)

Determines whether two specified instances of ExceptionHandler are equal.

Inequality(ExceptionHandler, ExceptionHandler) Inequality(ExceptionHandler, ExceptionHandler) Inequality(ExceptionHandler, ExceptionHandler) Inequality(ExceptionHandler, ExceptionHandler)

Determines whether two specified instances of ExceptionHandler are not equal.

Applies to