ExceptionRegionEncoder.AddCatch Metoda

Definice

Přidá klauzuli chyby.

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

Zkuste odsazení začátku bloku.

tryLength
Int32

Zkuste délku bloku.

handlerOffset
Int32

Posun spuštění obslužné rutiny.

handlerLength
Int32

Délka obslužné rutiny.

Návraty

Kodér pro další klauzuli.

Výjimky

Formát catchType je neplatný.

tryOffsethandlerOffset, tryLengthnebo handlerLength je mimo rozsah.

Tělo metody nebylo deklarováno pro oblasti výjimek.

Platí pro