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

# SaveAttachment

> Application Server 上の指定したドキュメント、ページ、またはバッチオブジェクトに添付ファイルを追加するには、ABBYY FlexiCapture API の SaveAttachment を使用します。

<div id="what-it-does">
  ## 動作
</div>

指定したオブジェクトに添付ファイルを追加します。

<div id="definition">
  ## 定義
</div>

```
void SaveAttachment( int sessionId, int type, int objectId, int batchId, int projectId, File file );
```

<div id="parameters">
  ## パラメーター
</div>

<table width="100%"><tbody><tr><td><p><strong>名称</strong></p></td><td><p><strong>型</strong></p></td><td><p><strong>説明</strong></p></td></tr><tr><td><p>sessionId</p></td><td><p>int</p></td><td><p>Application Server への接続 ID</p></td></tr><tr><td><p>type</p></td><td><p>int</p></td><td><p>添付ファイルの種類。指定可能な値</p><ul><li><strong>9</strong> - ドキュメントへの添付ファイル;</li><li><strong>10</strong> - ページへの添付ファイル;</li><li><strong>11</strong> - バッチへの添付ファイル.</li></ul></td></tr><tr><td><p>objectId</p></td><td><p>int</p></td><td><p>オブジェクトの ID</p></td></tr><tr><td><p>batchId</p></td><td><p>int</p></td><td><p>バッチの ID</p></td></tr><tr><td><p>projectId</p></td><td><p>int</p></td><td><p>プロジェクトの ID</p></td></tr><tr><td><p>file</p></td><td><p><a href="/ja/flexi-capture/api/structures/file">File</a></p></td><td><p>添付ファイル</p></td></tr></tbody></table>

<div id="returned-value">
  ## 戻り値
</div>

ありません。
