Uredi

Deli z drugimi prek


ControlFlowBuilder.AddFinallyRegion Method

Definition

Adds finally region.

public:
 void AddFinallyRegion(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 AddFinallyRegion (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.AddFinallyRegion : System.Reflection.Metadata.Ecma335.LabelHandle * System.Reflection.Metadata.Ecma335.LabelHandle * System.Reflection.Metadata.Ecma335.LabelHandle * System.Reflection.Metadata.Ecma335.LabelHandle -> unit
Public Sub AddFinallyRegion (tryStart As LabelHandle, tryEnd As LabelHandle, handlerStart As LabelHandle, handlerEnd As LabelHandle)

Parameters

tryStart
LabelHandle

Label marking the first instruction of the try block.

tryEnd
LabelHandle

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.

Exceptions

A label was not defined by an instruction encoder this builder is associated with.

A label has default value.

Applies to