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

# PFEntityGetAPIEndpointSize

> 获取实体句柄中用于保存 API 终结点字符串所需的缓冲区大小。

获取实体句柄中用于保存 API 终结点字符串所需的缓冲区大小。

## 语法

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

### 参数

**`entityHandle`**   PFEntityHandle

从身份验证调用返回的 PFEntityHandle。

**`apiEndpointSize`**   size\_t\*<br />*输出*

API 终结点字符串所需的缓冲区大小（包括 null 终止符）。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 要求

**头文件：** PFEntity.h

## 另请参阅

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


## Related topics

- [PFEntityGetAPIEndpoint](/zh-CN/services/playfab/api-references/c/pfentity/functions/pfentitygetapiendpoint.md)
- [实体句柄](/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)
- [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)
