Share via


ControlFlowBuilder.AddCatchRegion メソッド

定義

catch 領域を追加します。

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

パラメーター

tryStart
LabelHandle

try ブロックの最初の命令をマークしたラベル。

tryEnd
LabelHandle

try ブロックの直後の命令をマークしたラベル。

handlerStart
LabelHandle

ハンドラーの最初の命令をマークしたラベル。

handlerEnd
LabelHandle

ハンドラーの直後の命令をマークしたラベル。

catchType
EntityHandle

キャッチされる例外の種類: TypeDefinitionHandleTypeReferenceHandle、または TypeSpecificationHandle

例外

このビルダーが関連付けられている命令エンコーダーによって、ラベルが定義されませんでした。

- または -

catchType が有効な型のハンドルではありません。

ラベルには既定値があります。

適用対象