ExceptionRegionEncoder.AddCatch Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Agrega una cláusula de error.
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
Pruebe el desplazamiento de inicio del bloque.
- tryLength
- Int32
Pruebe la longitud del bloque.
- handlerOffset
- Int32
Desplazamiento de inicio del controlador.
- handlerLength
- Int32
Longitud del controlador.
Devoluciones
Codificador para la cláusula siguiente.
Excepciones
catchType no es válido.
tryOffset
handlerOffset, tryLengtho handlerLength está fuera del intervalo.
El cuerpo del método no se declaró para tener regiones de excepción.