संपादित करें

इसके माध्यम से साझा किया गया


ControlFlowBuilder.AddFilterRegion Method

Definition

Adds catch region.

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

filterStart
LabelHandle

Label marking the first instruction of the filter block.

Exceptions

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

A label has default value.

Applies to