ExceptionRegionEncoder.AddCatch Méthode

Définition

Ajoute une clause d’erreur.

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

Paramètres

tryOffset
Int32

Essayez le décalage de démarrage du bloc.

tryLength
Int32

Essayez la longueur du bloc.

handlerOffset
Int32

Décalage de début du gestionnaire.

handlerLength
Int32

Longueur du gestionnaire.

Retours

Encodeur pour la clause suivante.

Exceptions

catchType n’est pas valide.

tryOffset, tryLengthou handlerOffsethandlerLength est hors limites.

Le corps de la méthode n’a pas été déclaré pour avoir des régions d’exception.

S’applique à