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

Catch할 예외의 형식: TypeDefinitionHandle, TypeReferenceHandle 또는 TypeSpecificationHandle.

예외

이 작성기가 연결된 명령 인코더에서 레이블을 정의하지 않았습니다.

또는

catchType이 올바른 형식 핸들이 아닙니다.

레이블에는 기본값이 있습니다.

적용 대상