ExceptionRegionEncoder.AddCatch Metodo

Definizione

Aggiunge una clausola di errore.

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

Parametri

tryOffset
Int32

Provare l'offset di avvio del blocco.

tryLength
Int32

Provare la lunghezza del blocco.

handlerOffset
Int32

Offset iniziale del gestore.

handlerLength
Int32

Lunghezza del gestore.

Valori restituiti

Codificatore per la clausola successiva.

Eccezioni

catchType non è valido.

tryOffset handlerOffset, tryLengtho handlerLength non è compreso nell'intervallo.

Il corpo del metodo non è stato dichiarato per avere aree di eccezione.

Si applica a