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

# PFEntityGetTitleId

> エンティティ ハンドルに関連付けられた PFServiceConfig の titleId を取得します。

エンティティ ハンドルに関連付けられた PFServiceConfig の titleId を取得します。

## 構文

```cpp theme={null}
HRESULT PFEntityGetTitleId(  
    PFEntityHandle entityHandle,  
    size_t titleIdSize,  
    char* titleIdBuffer,  
    size_t* titleIdUsed  
)  
```

### パラメーター

**`entityHandle`**   PFEntityHandle

認証呼び出しから返された PFEntityHandle。

**`titleIdSize`**   size\_t

指定されたバッファーのサイズ。必要なサイズは PFEntityGetAPIEndpointSize で取得できます。

**`titleIdBuffer`**   char\*\
**Out\_writes*(titleIdSize)*

titleId 文字列が書き込まれるバッファー。

**`titleIdUsed`**   size\_t\*\
*optional output*

null 終端文字を含む、バッファー内で使用されたバイト数。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 要件

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

## 関連項目

[PFEntity のメンバー](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfentity/pfentity_members.md)


## Related topics

- [エンティティハンドル](https://docs.xbox.com/ja-jp/services/playfab/sdks/c/entity-handles.md)
- [PFEntityGetTitleIdSize](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfentity/functions/pfentitygettitleidsize.md)
- [GET /titles/{titleId}/users/{xuid}/activities API](https://docs.xbox.com/ja-jp/reference/live/rest/uri/multiplayeractivity/swagger-uris/uri-GetActivity.md)
- [POST /titles/{titleId}/activities/query](https://docs.xbox.com/ja-jp/reference/live/rest/uri/multiplayeractivity/swagger-uris/uri-ExternalGetActivityBatch.md)
- [Get Entity Item Review](https://docs.xbox.com/api-reference/catalog/get-entity-item-review.md)
