> ## 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](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/partylocalendpoint) 版本。

取得此端點的 [PartyLocalEndpoint](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/partylocalendpoint) 版本。

## 語法

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

### 參數

**`localEndpoint`**   [PartyLocalEndpoint\*\*](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/partylocalendpoint)\
*程式庫配置的輸出，可能傳回 nullptr*

此端點物件的輸出本機版本，如果這不是本機端點，則為 nullptr。

### 傳回值

PartyError

`c_partyErrorSuccess` (如果呼叫成功)，否則為錯誤碼。可透過 [PartyManager::GetErrorMessage()](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage) 擷取錯誤碼的人類可讀形式。

## 需求

**標頭：** Party.h

## 另請參閱

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


## Related topics

- [PartyLocalEndpoint](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/partylocalendpoint.md)
- [PlayFab Party 物件及其關聯](/zh-TW/services/playfab/multiplayer/networking/concepts-objects.md)
- [PartyLocalEndpoint::GetLocalUser](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/methods/partylocalendpoint_getlocaluser.md)
- [PartyEndpoint::GetUniqueIdentifier](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getuniqueidentifier.md)
- [PartyEndpoint::GetDevice](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getdevice.md)
