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

# エンジン オブジェクトの LoadImageDocument メソッド

このメソッドは、ディスク上のフォルダーから [**ImageDocument**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imagedocument.md) オブジェクトの内容を復元します。復元する内容は、あらかじめ [**IImageDocument::SaveTo**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imagedocument-saveto.md) メソッドでディスクに保存しておく必要があります。

## 構文

```vb Visual Basic .NET theme={null}
Function LoadImageDocument(path As String) As ImageDocument
```

```cpp C++ theme={null}
HRESULT LoadImageDocument(
  BSTR             path,
  IImageDocument** result
);
```

## パラメーター

**path**

\[in] **ImageDocument** オブジェクトの内容が格納されているフォルダーへのフルパスを指定します。

**result**

\[out, retval] 生成された [**ImageDocument**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imagedocument.md) オブジェクトのインターフェースポインターを受け取る **IImageDocument**\* ポインター変数へのポインター。NULL は指定できません。

## 戻り値

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

## 関連項目

[**エンジン**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine.md)

[**IImageDocument::SaveTo**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imagedocument-saveto.md)
