> ## 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 RegistrationParameters Object

This method creates a new [**RegistrationParameter**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/registrationparameter.md) object and adds it at the end of the collection.

## Syntax

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

```cpp C++ theme={null}
HRESULT AddNew(
  BSTR                 Name,
  BSTR                 Value,
  ISectionDefinition** Result
);
```

## Parameters

**Name**

\[in] This parameter specifies the name of the new registration parameter.

**Value**

\[in] This parameter specifies the value of the new registration parameter.

**Result**

\[out, retval] A pointer to the **IRegistrationParameter\*** pointer variable that receives the interface pointer of the added [**RegistrationParameter**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/registrationparameter.md) object.

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

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

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