ExceptionRegionEncoder.AddCatch Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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.