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

# PFEntityGetAPIEndpointSize

> 取得保存實體控制代碼之 API 端點字串所需的緩衝區大小。

取得保存實體控制代碼之 API 端點字串所需的緩衝區大小。

## 語法

```cpp theme={null}
HRESULT PFEntityGetAPIEndpointSize(  
    PFEntityHandle entityHandle,  
    size_t* apiEndpointSize  
)  
```

### 參數

**`entityHandle`**   PFEntityHandle

從驗證呼叫傳回的 PFEntityHandle。

**`apiEndpointSize`**   size\_t\*\
*output*

API 端點字串所需的緩衝區大小 (包括 null 結束字元)。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 需求

**標頭：** PFEntity.h

## 另請參閱

[PFEntity 成員](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfentity/pfentity_members.md)


## Related topics

- [PFEntityGetAPIEndpoint](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfentity/functions/pfentitygetapiendpoint.md)
- [PFEntityGetTitleId](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfentity/functions/pfentitygettitleid.md)
- [實體控制代碼](https://docs.xbox.com/zh-TW/services/playfab/sdks/c/entity-handles.md)
- [服務 C API 概觀 - PFEntity.h](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [PartyEndpoint::GetEntityId](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getentityid.md)
