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

# PFTitleDataManagementServerSetPublisherDataAsync

> 更新自訂發行者設定的索引鍵/值存放區

更新自訂發行者設定的索引鍵/值存放區

## 語法

```cpp theme={null}
HRESULT PFTitleDataManagementServerSetPublisherDataAsync(  
    PFEntityHandle titleEntityHandle,  
    const PFTitleDataManagementSetPublisherDataRequest* request,  
    XAsyncBlock* async  
)  
```

### 參數

**`titleEntityHandle`**   PFEntityHandle

使用 PFAuthenticationGetEntityWithSecretKeyAsync 取得之 Title 實體的 PFEntityHandle。

**`request`**   [PFTitleDataManagementSetPublisherDataRequest\*](/zh-TW/services/playfab/api-references/c/pftitledatamanagementtypes/structs/pftitledatamanagementsetpublisherdatarequest)

已填入的要求物件。

**`async`**   XAsyncBlock\*\
**Inout**

用於非同步作業的 XAsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

此 API 適用於 Win32、Linux 和 macOS。此 API 的設計目的是儲存用戶端可讀取但無法寫入的發行者專屬值。此資料會在指派給特定發行者的所有遊戲之間共用，可用於跨遊戲協調。只有指派給發行者的遊戲才能使用此 API。此作業是累加的。如果目前的資料集中不存在某個 Key，則會以指定的 Value 新增該 Key。如果已存在，則該 Key 的 Value 會以新的 Value 覆寫。如需詳細資訊，請寄送電子郵件至 [helloplayfab@microsoft.com](mailto:helloplayfab@microsoft.com)。另請參閱 ServerGetPublisherDataAsync。呼叫 XAsyncGetStatus 以取得作業的狀態。如果服務呼叫失敗，非同步結果將為 E\_PF\_PUBLISHER\_NOT\_SET 或任何全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 需求

**標頭：** PFTitleDataManagement.h

## 另請參閱

[PFTitleDataManagement 成員](/zh-TW/services/playfab/api-references/c/pftitledatamanagement/pftitledatamanagement_members)


## Related topics

- [服務 C API 概觀 - PFTitleDataManagement.h](/zh-TW/services/playfab/api-references/c/pftitledatamanagement/pftitledatamanagement_members.md)
- [PFTitleDataManagementServerGetPublisherDataAsync](/zh-TW/services/playfab/api-references/c/pftitledatamanagement/functions/pftitledatamanagementservergetpublisherdataasync.md)
- [PFTitleDataManagementServerGetPublisherDataGetResult](/zh-TW/services/playfab/api-references/c/pftitledatamanagement/functions/pftitledatamanagementservergetpublisherdatagetresult.md)
- [PFPlayerDataManagementServerUpdateUserPublisherDataAsync](/zh-TW/services/playfab/api-references/c/pfplayerdatamanagement/functions/pfplayerdatamanagementserverupdateuserpublisherdataasync.md)
- [PFPlayerDataManagementServerUpdateUserPublisherInternalDataAsync](/zh-TW/services/playfab/api-references/c/pfplayerdatamanagement/functions/pfplayerdatamanagementserverupdateuserpublisherinternaldataasync.md)
