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

# SaveToFile メソッド

このメソッドは、オブジェクトの内容をディスク上のファイルに保存します。

## 構文

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

```csharp C# theme={null}
void SaveToFile( string Path );
```

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

## パラメーター

**Path**

\[in] このパラメーターは、オブジェクトの内容の保存先となるファイルのパスを指定します。同じ名前のファイルが既に存在する場合は、確認なしで上書きされます。

## 戻り値

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

## 備考

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

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

## 関連項目

[**LoadFromFile**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/loadfromfile.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)
