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

# XblMultiplayerSessionSetAllocateCloudCompute

> XblMultiplayerSessionSetAllocateCloudCompute

# XblMultiplayerSessionSetAllocateCloudCompute

如果設定此屬性，將會嘗試配置 'cloudComputePackage'。

## 語法

```cpp theme={null}
void XblMultiplayerSessionSetAllocateCloudCompute(  
         XblMultiplayerSessionHandle handle,  
         bool allocateCloudCompute  
)  
```

### 參數

*handle*   \_In\_\
類型：[XblMultiplayerSessionHandle](/zh-TW/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersessionhandle)

多人遊戲工作階段的控制代碼。

*allocateCloudCompute*   \_In\_\
類型：bool

若應配置雲端運算套件則為 True，否則為 false。

### 傳回值

類型：void

## 需求

**標頭：** multiplayer\_c.h

**程式庫：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另請參閱

[multiplayer\_c](/zh-TW/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members)


## Related topics

- [工作階段範本常數](/zh-TW/services/xbox-services/multiplayer/mpsd/concepts/live-session-template-constants.md)
- [XblMultiplayerSessionProperties](/zh-TW/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayersessionproperties.md)
- [XblMultiplayerSessionConstants](/zh-TW/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayersessionconstants.md)
- [多人遊戲工作階段目錄](/zh-TW/services/xbox-services/multiplayer/mpsd/live-xbox-multiplayer-session-directory.md)
- [PartyXblManager::SetMemoryCallbacks](/zh-TW/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_setmemorycallbacks.md)
