ControlFlowBuilder.AddFaultRegion(LabelHandle, LabelHandle, LabelHandle, LabelHandle) 方法

定义

添加 fault 区域。Adds fault region.

public:
 void AddFaultRegion(System::Reflection::Metadata::Ecma335::LabelHandle tryStart, System::Reflection::Metadata::Ecma335::LabelHandle tryEnd, System::Reflection::Metadata::Ecma335::LabelHandle handlerStart, System::Reflection::Metadata::Ecma335::LabelHandle handlerEnd);
public void AddFaultRegion (System.Reflection.Metadata.Ecma335.LabelHandle tryStart, System.Reflection.Metadata.Ecma335.LabelHandle tryEnd, System.Reflection.Metadata.Ecma335.LabelHandle handlerStart, System.Reflection.Metadata.Ecma335.LabelHandle handlerEnd);
member this.AddFaultRegion : System.Reflection.Metadata.Ecma335.LabelHandle * System.Reflection.Metadata.Ecma335.LabelHandle * System.Reflection.Metadata.Ecma335.LabelHandle * System.Reflection.Metadata.Ecma335.LabelHandle -> unit
Public Sub AddFaultRegion (tryStart As LabelHandle, tryEnd As LabelHandle, handlerStart As LabelHandle, handlerEnd As LabelHandle)

参数

tryStart
LabelHandle

标记 try 块的第一条指令的标签。Label marking the first instruction of the try block.

tryEnd
LabelHandle

标记紧跟在 try 块后面的指令的标签。Label marking the instruction immediately following the try block.

handlerStart
LabelHandle

标记处理程序的第一条指令的标签。Label marking the first instruction of the handler.

handlerEnd
LabelHandle

标记紧跟在处理程序后面的指令的标签。Label marking the instruction immediately following the handler.

例外

标签不是由与此生成器关联的指令编码器定义的。A label was not defined by an instruction encoder this builder is associated with.

标签具有默认值。A label has default value.

适用于