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

Offset iniziale del blocco try.

tryLength
Int32

Provare la lunghezza del blocco.

handlerOffset
Int32

Offset di inizio del gestore.

handlerLength
Int32

Lunghezza del gestore.

Restituisce

Codificatore per la clausola successiva.

Eccezioni

catchType non è valido.

tryOffset, tryLength, handlerOffset o handlerLength non è compreso nell'intervallo.

Il corpo del metodo non è stato dichiarato con aree di eccezioni.

Si applica a