> ## 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\*\
*输出*

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

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 要求

**头文件：** PFEntity.h

## 另请参阅

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


## Related topics

- [PFEntityGetAPIEndpoint](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfentity/functions/pfentitygetapiendpoint.md)
- [PFEntityGetTitleId](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfentity/functions/pfentitygettitleid.md)
- [实体句柄](https://docs.xbox.com/zh-CN/services/playfab/sdks/c/entity-handles.md)
- [Services C API overview - PFEntity.h](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [PartyEndpoint::GetEntityId](https://docs.xbox.com/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getentityid.md)
