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

# SaveToMemoryメソッド

このメソッドは、オブジェクトの内容をグローバルメモリに保存します。このメソッドは、オブジェクト用に割り当てられたメモリ領域の HGLOBAL ハンドルを [**ハンドル**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/handle.md) オブジェクトとして返します。このオブジェクトはメモリ割り当てを管理し、使用されなくなったリソースを解放します。

## 構文

```cpp C++ theme={null}
HRESULT SaveToMemory( IHandle** Result );
```

```csharp C# theme={null}
Handle SaveToMemory();
```

```vb Visual Basic .NET theme={null}
Function SaveToMemory() As Handle
```

## パラメーター

**Result**

\[out, retval] 結果として得られる [**ハンドル**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/handle.md) オブジェクトのインターフェースポインターを受け取る **IHandle**\* ポインター変数へのポインター。

## 戻り値

このメソッドには固有の戻り値はありません。[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)

## 関連項目

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

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

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