ExceptionHandler Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Attributes
- Implements
Exception |
Initializes a new instance of the ExceptionHandler class with the specified parameters. |
Exception |
Gets the token of the exception type handled by this handler. |
Filter |
Gets the byte offset at which the filter code for the exception handler begins. |
Handler |
Gets the length, in bytes, of the exception handler. |
Handler |
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. |
Try |
Gets the length, in bytes, of the code protected by this exception handler. |
Try |
Gets the byte offset at which the code that is protected by this exception handler begins. |
Equals(Exception |
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. |
Get |
Serves as the default hash function. |
Equality(Exception |
Determines whether two specified instances of ExceptionHandler are equal. |
Inequality(Exception |
Determines whether two specified instances of ExceptionHandler are not equal. |
Product | Versions |
---|---|
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: