Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Rethrow Field
Collapse the table of content
Expand the table of content

OpCodes.Rethrow Field

Rethrows the current exception.

Namespace:  System.Reflection.Emit
Assemblies:   System.Reflection.Primitives (in System.Reflection.Primitives.dll)
  mscorlib (in mscorlib.dll)

public static readonly OpCode Rethrow

The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:

Format

Assembly Format

Description

FE 1A

rethrow

Rethrows the current exception

No stack transition behavior is defined for this instruction.

The rethrow instruction is only permitted within the body of a catch handler. It throws the same exception that was caught by this handler.

The following Emit method overload can use the rethrow opcode:

  • ILGenerator.Emit(OpCode)

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
Show:
© 2015 Microsoft