ExceptionRegionEncoder.AddCatch Método

Definição

Adiciona uma cláusula de culpa.

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

Experimenta o deslocamento de início do bloco.

tryLength
Int32

Experimente o comprimento do bloco.

handlerOffset
Int32

Início do handler offset.

handlerLength
Int32

Comprimento do handler.

Devoluções

Codificador para a próxima cláusula.

Exceções

catchType é inválido.

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

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

Aplica-se a