> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Méthode FindByName de l'objet ClassificationTrainingBatches

Cette méthode permet de rechercher un lot de la collection à partir de son nom.

## Syntaxe

```vb Visual Basic .NET theme={null}
Function FindByName(Name As String) As ClassificationTrainingBatch
```

```cpp C++ theme={null}
HRESULT FindByName(
  BSTR                           Name,
  IClassificationTrainingBatch** Result
);
```

## Paramètres

**Name**

\[in] Cette variable contient le nom du lot à rechercher.

**Result**

\[out, retval] Pointeur vers la variable [**IClassificationTrainingBatch**](https://docs.abbyy.com/fr/flexi-capture/sdk/api-reference/classificationtrainingbatch.md)\*\*\*\*\* qui reçoit le pointeur d’interface du lot d’entraînement. Renvoie NULL si aucun lot portant le nom spécifié n’est trouvé.

## Valeurs de retour

Cette méthode n'a pas de valeurs de retour spécifiques. Elle renvoie les [valeurs de retour standard des fonctions du SDK ABBYY FlexiCapture](https://docs.abbyy.com/fr/flexi-capture/sdk/api-reference/errorcodes.md).

## Voir aussi

[**ClassificationTrainingBatches**](https://docs.abbyy.com/fr/flexi-capture/sdk/api-reference/classificationtrainingbatches.md)
