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

# IUserAttachments

> IUserAttachments コレクションを使用して、FlexiCapture スクリプトでドキュメントの添付ファイルを管理できます。添付ファイルの追加、取得、削除のほか、名前による確認も行えます。

<div id="what-it-does">
  ## 機能
</div>

[IUserAttachment](/ja/flexi-capture/appendix/scripts/iattachment) オブジェクトのコレクションです。

<a id="webverificationavailableinterface" />

<Note>
  このオブジェクトの一部のメソッドおよびプロパティは、ルールをローカルで確認するための Web Verification Station では利用できません。サポートされていないメソッドおよびプロパティには、アスタリスク (\*) が付いています。
</Note>

<div id="methods">
  ## メソッド
</div>

<table width="100%">
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        <p>
          <strong>定義</strong>
        </p>
      </th>

      <th style={{ textAlign: "left" }}>
        <p>
          <strong>説明</strong>
        </p>
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <p>
          AddNew( name : string) : <a href="/ja/flexi-capture/appendix/scripts/iattachment">IUserAttachment</a> <a href="#webverificationavailableinterface">\*</a>
        </p>
      </td>

      <td>
        <p>新しい添付ファイルを作成し、編集を開始します。</p>

        <p>
          <strong>重要！ </strong> このメソッドは新しい <a href="/ja/flexi-capture/appendix/scripts/iattachment">IUserAttachment</a> アイテムを作成しますが、コレクションには追加しません。アイテムを
          コレクションに追加して編集できるようにするには、UploadAttachment( ) メソッドを呼び出す必要があります。
        </p>

        <p>
          <strong>注: </strong> この名前の空でない添付ファイルがすでに存在する場合は、例外が返されます。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          Delete( name : string) <a href="#webverificationavailableinterface">\*</a>
        </p>
      </td>

      <td>
        <p>指定した名前の添付ファイルを削除します。</p>

        <p>
          <strong>注: </strong> 要素を削除する際、その存在は確認されません。そのため、削除対象の要素がコレクション内になくても、このメソッドは成功します。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          Get( name : string) : <a href="/ja/flexi-capture/appendix/scripts/iattachment">IUserAttachment</a> <a href="#webverificationavailableinterface">\*</a>
        </p>
      </td>

      <td>
        <p>指定した名前の添付ファイルを取得します</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          Has( name : string) : bool <a href="#webverificationavailableinterface">\*</a>
        </p>
      </td>

      <td>
        <p>指定した名前の添付ファイルが存在するかどうかを確認します</p>
      </td>
    </tr>
  </tbody>
</table>

<div id="properties">
  ## プロパティ
</div>

| **名前**  | **型**                                                        | **アクセス** | **説明**                    |
| ------- | ------------------------------------------------------------ | -------- | ------------------------- |
| IsEmpty | bool                                                         | 読み取り専用   | 配列に添付ファイルが含まれているかどうかを示します |
| Names   | [IVariantArray](/ja/flexi-capture/appendix/scripts/ivariant) | 読み取り専用   | 添付ファイル名の配列                |
