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

# LoadFromFile メソッド

このメソッドは、ディスク上のファイルからオブジェクトの内容を復元します。このファイルは、事前に [**SaveToFile**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/savetofile.md) メソッドで保存しておく必要があります。

## 構文

```vb Visual Basic .NET theme={null}
Sub LoadFromFile(Path As String)
```

```cpp C++ theme={null}
HRESULT LoadFromFile( BSTR Path );
```

## パラメーター

**Path**

\[in] オブジェクトの内容が保存されているディスク上のファイルへのパス。このパスで指定されたファイルが、現在のオブジェクトと同じ型のオブジェクトの [**SaveToFile**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/savetofile.md) メソッドを呼び出して作成されたものでない場合は、所定のエラーコードが返されます。

## 戻り値

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

## 備考

このメソッドは、次のオブジェクトで使用できます。

* [**JpegExtendedParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/jpegextendedparams.md)
* [**Region**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/region.md)

## 関連項目

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

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

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