> ## 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.

# FindByName Method of the DocumentDefinitions Object

This method allows you to find a Document Definition by its name.

## Syntax

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

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

## Parameters

**Name**

\[in] This variable contains the name of the Document Definition to be found.

**Result**

\[out, retval] A pointer to the [**IDocumentDefinition**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documentdefinition.md)**\*** variable that receives the interface pointer for the Document Definition. Returns NULL, if the Document Definition with the specified name is not found.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**DocumentDefinitions**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documentdefinitions.md)

[**DocumentDefinition**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documentdefinition.md)
