ExceptionHandler Structure

ExceptionHandler Structure

.NET Framework (current version)
 

Represents an exception handler in a byte array of IL to be passed to a method such asSetMethodBody.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

[ComVisibleAttribute(false)]
public struct ExceptionHandler : IEquatable<ExceptionHandler>

NameDescription
System_CAPS_pubmethodExceptionHandler(Int32, Int32, Int32, Int32, Int32, ExceptionHandlingClauseOptions, Int32)

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

NameDescription
System_CAPS_pubpropertyExceptionTypeToken

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

System_CAPS_pubpropertyFilterOffset

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

System_CAPS_pubpropertyHandlerLength

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

System_CAPS_pubpropertyHandlerOffset

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

System_CAPS_pubpropertyKind

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

System_CAPS_pubpropertyTryLength

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

System_CAPS_pubpropertyTryOffset

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

NameDescription
System_CAPS_pubmethodEquals(ExceptionHandler)

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

System_CAPS_pubmethodEquals(Object)

Indicates whether this instance of the ExceptionHandler object is equal to a specified object.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the fully qualified type name of this instance.(Inherited from ValueType.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(ExceptionHandler, ExceptionHandler)

Determines whether two specified instances of ExceptionHandler are equal.

System_CAPS_puboperatorSystem_CAPS_staticInequality(ExceptionHandler, ExceptionHandler)

Determines whether two specified instances of ExceptionHandler are not equal.

.NET Framework
Available since 4.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft