ExceptionRegionEncoder.AddCatch Metoda

Definicja

Dodaje klauzulę błędów.

public:
 System::Reflection::Metadata::Ecma335::ExceptionRegionEncoder AddCatch(int tryOffset, int tryLength, int handlerOffset, int handlerLength, System::Reflection::Metadata::EntityHandle catchType);
public System.Reflection.Metadata.Ecma335.ExceptionRegionEncoder AddCatch (int tryOffset, int tryLength, int handlerOffset, int handlerLength, System.Reflection.Metadata.EntityHandle catchType);
member this.AddCatch : int * int * int * int * System.Reflection.Metadata.EntityHandle -> System.Reflection.Metadata.Ecma335.ExceptionRegionEncoder
Public Function AddCatch (tryOffset As Integer, tryLength As Integer, handlerOffset As Integer, handlerLength As Integer, catchType As EntityHandle) As ExceptionRegionEncoder

Parametry

tryOffset
Int32

Spróbuj uruchomić przesunięcie bloku.

tryLength
Int32

Spróbuj użyć długości bloku.

handlerOffset
Int32

Przesunięcie uruchamiania programu obsługi.

handlerLength
Int32

Długość procedury obsługi.

Zwraca

ExceptionRegionEncoder

Koder dla następnej klauzuli.

Wyjątki

catchType jest nieprawidłowy.

tryOffset, tryLengthlub handlerOffset handlerLength jest poza zakresem.

Treść metody nie została zadeklarowana jako regiony wyjątków.

Dotyczy