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

# XPersistentLocalStoragePromptUserForSpaceResult

> XPersistentLocalStoragePromptUserForSpaceResult

# XPersistentLocalStoragePromptUserForSpaceResult

返回对 [XPersistentLocalStoragePromptUserForSpaceAsync](/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragepromptuserforspaceasync) 函数调用的结果。

<a id="syntaxSection" />

## 语法

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

<a id="parametersSection" />

### 参数

*asyncBlock*   \_Inout\_\
类型：XAsyncBlock\d\*

指向 `XAsyncBlock` 对象的指针，你可以使用它来监视异步调用的状态。

<a id="retvalSection" />

### 返回值

类型：HRESULT

如果用户尝试释放所请求的空间，则返回 **S\_OK**；否则返回错误代码。有关错误代码列表，请参阅[错误代码](/reference/errorcodes)。如果用户选择不尝试释放空间，则返回 **E\_ABORT**。

<a id="remarksSection" />

## 备注

如果用户选择释放空间，则异步操作的结果为成功。这并不保证用户释放了所请求的字节数，仅表示用户执行了操作。

当用户重试导致空间请求的操作时，你的游戏应再次使用 [XPersistentLocalStorageGetSpaceInfo](/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetspaceinfo) 查询可用空间。

如果用户选择不释放空间，则异步操作会导致 `E_ABORT`。

由于永久本地存储未在 PC 平台上实现，请勿在该平台上使用此函数。

<a id="requirementsSection" />

## 要求

**头文件：** XPersistentLocalStorage.h

**库：** xgameruntime.lib

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

<a id="seealsoSection" />

## 另请参阅

[XPersistentLocalStorage](/reference/system/xpersistentlocalstorage/xpersistentlocalstorage_members)\
[XPersistentLocalStorageGetSpaceInfo](/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetspaceinfo)
