> ## 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](/zh-TW/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**；否則傳回錯誤碼。如需錯誤碼的清單，請參閱[錯誤碼](/zh-TW/reference/errorcodes)。如果使用者選擇不嘗試釋放空間，則傳回 **E\_ABORT**。

<a id="remarksSection" />

## 備註

如果使用者選擇釋放空間，非同步作業的結果即為成功。這並不保證使用者已釋放所要求的位元組數，只表示使用者已採取動作。

當使用者重試導致空間要求的作業時，您的遊戲應再次使用 [XPersistentLocalStorageGetSpaceInfo](/zh-TW/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragegetspaceinfo) 查詢可用空間。

如果使用者選擇不釋放空間，非同步作業的結果會是 `E_ABORT`。

由於 PC 平台上未實作永續性本機儲存體，請勿在該平台上使用此函式。

<a id="requirementsSection" />

## 需求

**標頭：** XPersistentLocalStorage.h

**程式庫：** xgameruntime.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

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


## Related topics

- [XPersistentLocalStoragePromptUserForSpaceResult](/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragepromptuserforspaceresult.md)
- [XPersistentLocalStoragePromptUserForSpaceAsync](/reference/system/xpersistentlocalstorage/functions/xpersistentlocalstoragepromptuserforspaceasync.md)
- [XPersistentLocalStorage](/reference/system/xpersistentlocalstorage/xpersistentlocalstorage_members.md)
