ExceptionRegionEncoder.AddCatch Método

Definição

Adiciona uma cláusula de falha.

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

Parâmetros

tryOffset
Int32

Tente bloquear o deslocamento de início.

tryLength
Int32

Experimente o comprimento do bloco.

handlerOffset
Int32

Deslocamento de início do manipulador.

handlerLength
Int32

Comprimento do manipulador.

Retornos

Codificador para a próxima cláusula.

Exceções

catchType é inválido.

tryOffset handlerOffset, tryLengthou handlerLength está fora do intervalo.

O corpo do método não foi declarado para ter regiões de exceção.

Aplica-se a