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

# PartyEndpoint::GetLocal

> 获取此终结点的 [PartyLocalEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/partylocalendpoint) 版本。

获取此终结点的 [PartyLocalEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/partylocalendpoint) 版本。

## Syntax

```cpp theme={null}
PartyError GetLocal(  
    PartyLocalEndpoint** localEndpoint  
)  
```

### Parameters

**`localEndpoint`**   [PartyLocalEndpoint\*\*](/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/partylocalendpoint)\
*library-allocated output, may return nullptr*

此终结点对象的输出本地版本；如果这不是本地终结点，则为 nullptr。

### Return value

PartyError

如果调用成功，则返回 `c_partyErrorSuccess`；否则返回错误代码。可通过 [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage) 检索错误代码的可读形式。

## Requirements

**Header:** Party.h

## See also

[PartyEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/partyendpoint)


## Related topics

- [PartyLocalEndpoint](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/partylocalendpoint.md)
- [PlayFab Party 对象及其关系](/zh-CN/services/playfab/multiplayer/networking/concepts-objects.md)
- [PartyLocalEndpoint::GetLocalUser](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/methods/partylocalendpoint_getlocaluser.md)
- [PartyEndpoint::GetUniqueIdentifier](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getuniqueidentifier.md)
- [PartyEndpoint::GetDevice](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getdevice.md)
