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

# PFEntityGetAPIEndpoint

> 取得與實體控制代碼相關聯之 PFServiceConfig 的 API 端點。

取得與實體控制代碼相關聯之 PFServiceConfig 的 API 端點。

## 語法

```cpp theme={null}
HRESULT PFEntityGetAPIEndpoint(  
    PFEntityHandle entityHandle,  
    size_t apiEndpointSize,  
    char* apiEndpoint,  
    size_t* apiEndpointUsed  
)  
```

### 參數

**`entityHandle`**   PFEntityHandle

從驗證呼叫傳回的 PFEntityHandle。

**`apiEndpointSize`**   size\_t

所提供緩衝區的大小。所需大小可透過 PFEntityGetAPIEndpointSize 取得。

**`apiEndpoint`**   char\*<br />*Out\_writes(apiEndpointSize)*

API 端點字串將寫入的緩衝區。

**`apiEndpointUsed`**   size\_t\*<br />*optional output*

緩衝區中已使用的位元組數目，包括 null 結束字元。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 需求

**標頭：** PFEntity.h

## 另請參閱

[PFEntity 成員](/zh-TW/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [實體控制代碼](/zh-TW/services/playfab/sdks/c/entity-handles.md)
- [服務 C API 概觀 - PFEntity.h](/zh-TW/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [PFEntityGetAPIEndpointSize](/zh-TW/services/playfab/api-references/c/pfentity/functions/pfentitygetapiendpointsize.md)
- [PartyEndpoint::GetEntityType](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getentitytype.md)
- [PartyEndpoint::GetEntityId](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getentityid.md)
