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

# Find Method of the DataSets Object

This method allows you to find a data set in the collection by its name and the name of the section to which it belongs.

A data set may belong either to the Document Definition as a whole or to a specific section of the Document Definition. To find a data set that belongs to a section, specify the name of the section. To find a data set that does not belong to a particular section, pass NULL or an empty string as the *SectionName* parameter.

```vb Visual Basic .NET theme={null}
Function Find( _
    SectionName As String, _
    DataSetName As String _
) As DataSet
```

```cpp C++ theme={null}
HRESULT Find(
    BSTR       SectionName,
    BSTR       DataSetName,
    IDataSet** Result
);
```

## Parameters

**SectionName**

\[in] This variable contains the name of the section to which the data set belongs. To find a data set that does not belong to a particular section, pass NULL or an empty string.

**DataSetName**

\[in] This variable contains the name of the data set to be found.

**Result**

\[out, retval] A pointer to the [**IDataSet**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/dataset.md)**\*** object that receives the interface pointer for the found data set. Returns NULL if the data set with the specified name in the specified section 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).

## Samples

This method is used in the following code samples: [Invoices Processing and Training](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md#invoicesprocessingandtraining).

## See also

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

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