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

# PartyTextToSpeechProfile::GetLanguageCode

> 取得與此設定檔相關聯的語言代碼。

取得與此設定檔相關聯的語言代碼。

## 語法

```cpp theme={null}
PartyError GetLanguageCode(  
    PartyString* languageCode  
)  
```

### 參數

**`languageCode`**   [PartyString\*](/zh-TW/services/playfab/multiplayer/networking/reference/typedefs)\
*library-allocated output*

輸出的設定檔語言。字串的記憶體在設定檔的存留期間內保持有效。

### 傳回值

PartyError

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

## 需求

**標頭：** Party.h

## 另請參閱

[PartyTextToSpeechProfile](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/partytexttospeechprofile)


## Related topics

- [PartyTextToSpeechProfile](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/partytexttospeechprofile.md)
- [PartyTextToSpeechProfile::GetIdentifier](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getidentifier.md)
- [PartyTextToSpeechProfile::GetCustomContext](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getcustomcontext.md)
- [PartyTextToSpeechProfile::GetGender](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getgender.md)
- [PartyTextToSpeechProfile::GetName](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getname.md)
