ExceptionRegionEncoder.AddCatch Método

Definição

Adiciona uma cláusula fault.

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

Deslocamento inicial do bloco try.

tryLength
Int32

Comprimento do bloco try.

handlerOffset
Int32

Deslocamento inicial do manipulador.

handlerLength
Int32

Comprimento do manipulador.

Retornos

Codificador para a próxima cláusula.

Exceções

catchType é inválido.

tryOffset, tryLength, handlerOffset ou handlerLength está fora do intervalo.

Não foi declarado que o corpo do método tem regiões de exceção.

Aplica-se a