> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XPersistentLocalStoragePromptUserForSpaceResult

> XPersistentLocalStoragePromptUserForSpaceResult

# XPersistentLocalStoragePromptUserForSpaceResult

[XPersistentLocalStoragePromptUserForSpaceAsync](https://docs.xbox.com/ja-jp/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragepromptuserforspaceasync.md) 関数の呼び出し結果を返します。

## Syntax

```cpp theme={null}
HRESULT XPersistentLocalStoragePromptUserForSpaceResult(
         XAsyncBlock* asyncBlock
)
```

### Parameters

*asyncBlock*   \_Inout\_\
型: XAsyncBlock\d\*

非同期呼び出しの状態を監視するために使用できる `XAsyncBlock` オブジェクトへのポインター。

### Return value

型: HRESULT

ユーザーが要求された領域を解放しようと試みた場合は **S\_OK** を返します。そうでない場合はエラー コードを返します。エラー コードの一覧については、[エラー コード](https://docs.xbox.com/ja-jp/reference/errorcodes.md) を参照してください。ユーザーが領域の解放を試みないことを選択した場合は **E\_ABORT** を返します。

## Remarks

ユーザーが領域を解放することを選択した場合、非同期操作の結果は成功になります。ユーザーが要求されたバイト数を実際に解放したことは保証されず、アクションを実行したことのみが保証されます。

ユーザーが領域要求の原因となった操作を再試行するときに、ゲームは [XPersistentLocalStorageGetSpaceInfo](https://docs.xbox.com/ja-jp/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetspaceinfo.md) を再度使用して空き領域を照会する必要があります。

ユーザーが領域を解放しないことを選択した場合、非同期操作の結果は `E_ABORT` になります。

永続ローカル ストレージは PC プラットフォームでは実装されていないため、このプラットフォームでこの関数を使用しないでください。

## Requirements

**ヘッダー:** XPersistentLocalStorage.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## See also

[XPersistentLocalStorage](https://docs.xbox.com/ja-jp/reference/system/xpersistentlocalstorage/xpersistentlocalstorage_members.md)\
[XPersistentLocalStorageGetSpaceInfo](https://docs.xbox.com/ja-jp/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetspaceinfo.md)


## Related topics

- [XPersistentLocalStoragePromptUserForSpaceAsync](https://docs.xbox.com/ja-jp/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragepromptuserforspaceasync.md)
- [XPersistentLocalStorage (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xpersistentlocalstorage/xpersistentlocalstorage_members.md)
- [Unity プロジェクトでの GDK API 用 C# ラッパーの使用](https://docs.xbox.com/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XPersistentLocalStorageSpaceInfo](https://docs.xbox.com/ja-jp/reference/system/xpersistentlocalstorage/structs/xpersistentlocalstoragespaceinfo.md)
- [XPersistentLocalStorageGetSpaceInfo](https://docs.xbox.com/ja-jp/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetspaceinfo.md)
