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

# AddNew Method of the BatchTypes Object

This method adds a new batch type at the end of the collection.

## Syntax

```vb Visual Basic .NET theme={null}
Function AddNew(
  Name   As String, _
  Params As BatchTypeParams _
) As BatchType
```

```cpp C++ theme={null}
HRESULT AddNew(
  BSTR              Name,
  IBatchTypeParams* Params,
  IBatchType**      Result
);
```

## Parameters

**Name**

\[in] This variable specifies the name of the batch.

**Params**

\[in] This parameter refers to the [**BatchTypeParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batchtypeparams.md) object that contains text recognition parameters.

**Result**

\[out, retval] A pointer to the [**IBatchType**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batchtype.md)**\*** pointer variable that receives the interface pointer for the added batch type.

## 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: [Classification](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md#classification).

## See also

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