ControlFlowBuilder.AddFaultRegion Methode

Definition

Fügt fehlerbereich hinzu.

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)

Parameter

tryStart
LabelHandle

Beschriftung, die die erste Anweisung des Try-Blocks markiert.

tryEnd
LabelHandle

Beschriftung der Anweisung, die unmittelbar auf den Try-Block folgt.

handlerStart
LabelHandle

Beschriftung, die die erste Anweisung des Handlers markiert.

handlerEnd
LabelHandle

Beschriftung der Anweisung, die unmittelbar auf den Handler folgt.

Ausnahmen

Eine Bezeichnung wurde nicht durch einen Anweisungsgeber definiert, dem dieser Generator zugeordnet ist.

Eine Bezeichnung weist einen Standardwert auf.

Gilt für: