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

# HotFolderProfiles オブジェクトの AddNew メソッド

このメソッドは、指定した名前のホットフォルダープロファイルをコレクションの末尾に追加します。

## 構文

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

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

## パラメーター

**Name**

\[in] この変数には、プロファイルの名前が格納されます。

**Folder**

\[in] この変数には、ホットフォルダーへのパスを指定します。

**Result**

\[out, retval] 追加されたプロファイルのインターフェースポインターを受け取る [**IHotFolderProfile**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/hotfolderprofile.md)\*\*\*\*\* 変数へのポインター。

## 戻り値

このメソッドには固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)のいずれかを返します。

## 関連項目

[**HotFolderProfiles**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/hotfolderprofiles.md)
