> ## 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 />*可选输出*

缓冲区中已使用的字节数，包括 null 终止符。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 要求

**头文件：** PFEntity.h

## 另请参阅

[PFEntity 成员](/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [实体句柄](/zh-CN/services/playfab/sdks/c/entity-handles.md)
- [Services C API overview - PFEntity.h](/zh-CN/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [PFEntityGetAPIEndpointSize](/zh-CN/services/playfab/api-references/c/pfentity/functions/pfentitygetapiendpointsize.md)
- [PartyEndpoint::GetEntityId](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getentityid.md)
- [PartyEndpoint::GetEntityType](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getentitytype.md)
