OpCodes.Rethrow 字段

定义

再次引发当前异常。Rethrows the current exception.

public: static initonly System::Reflection::Emit::OpCode Rethrow;
public static readonly System.Reflection.Emit.OpCode Rethrow;
 staticval mutable Rethrow : System.Reflection.Emit.OpCode
Public Shared ReadOnly Rethrow As OpCode 

字段值

注解

下表列出了指令的十六进制和 Microsoft 中间语言(MSIL)程序集格式以及简短的参考摘要: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 1AFE 1A 重新引发rethrow 重新引发当前异常Rethrows the current exception

没有为此指令定义堆栈转换行为。No stack transition behavior is defined for this instruction.

仅在 catch 处理程序的主体中允许 @no__t 的指令。The rethrow instruction is only permitted within the body of a catch handler. 它将引发与此处理程序捕获的异常。It throws the same exception that was caught by this handler.

以下 @no__t 0 方法重载可以使用 @no__t 操作码:The following Emit method overload can use the rethrow opcode:

  • ILGenerator.Emit(OpCode)ILGenerator.Emit(OpCode)

适用于