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

# PFAuthenticationLoginWithXUserRequest

> PFAuthenticationLoginWithXUserRequest データ モデル。ユーザーが初めて XBOX Live アカウントでサインインし、CreateAccount が true に設定されている場合について。

PFAuthenticationLoginWithXUserRequest データ モデル。ユーザーが初めて XBOX Live アカウントでサインインし、CreateAccount が true に設定されている場合、新しい PlayFab アカウントが作成され、XBOX Live アカウントにリンクされます。この場合、メール アドレスやユーザー名は PlayFab アカウントに関連付けられません。それ以外に、XBOX Live アカウントにリンクされた PlayFab アカウントが存在しない場合はその旨を示すエラーが返されるので、タイトルはユーザーが PlayFab アカウントを作成できるよう誘導できます。PFAuthenticationLoginWithXUserAsync のリクエスト オブジェクト。

## 構文

```cpp theme={null}
typedef struct PFAuthenticationLoginWithXUserRequest {  
    bool createAccount;  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFGetPlayerCombinedInfoRequestParams const* infoRequestParameters;  
    const char* playerSecret;  
    XUserHandle user;  
} PFAuthenticationLoginWithXUserRequest;  
```

### メンバー

**`createAccount`**   bool

この ID に現在リンクされている PlayFab アカウントがない場合、自動的に PlayFab アカウントを作成します。

**`customTags`**   PFStringDictionaryEntry const\*<br />*may be nullptr*

(オプション) リクエストに関連付けるオプションのカスタム タグ (ビルド番号、外部トレース識別子など)。

**`customTagsCount`**   uint32\_t

customTags の数

**`infoRequestParameters`**   PFGetPlayerCombinedInfoRequestParams const\*<br />*may be nullptr*

(オプション) ユーザーに対して返す情報のフラグ。

**`playerSecret`**   const char\*<br />*is null-terminated*

(オプション) API リクエスト署名の検証に使用されるプレイヤー シークレット (Enterprise 専用)。

**`user`**   XUserHandle

XUserAddAsync または XUserAddByIdWithUiAsync から返される XUserHandle。

## 要件

**ヘッダー:** PFAuthenticationTypes.h

## 関連項目

[PFAuthenticationTypes のメンバー](/services/playfab/api-references/c/pfauthenticationtypes/pfauthenticationtypes_members)


## Related topics

- [PFAuthenticationLoginWithXUserAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationloginwithxuserasync.md)
- [PFAuthenticationReLoginWithXUserAsync](/ja-jp/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationreloginwithxuserasync.md)
- [イベントパイプラインチュートリアル](/ja-jp/services/playfab/sdks/c/event-pipeline/eventpipeline-tutorial.md)
- [PFAuthenticationLoginWithFacebookRequest](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithfacebookrequest.md)
- [PFAuthenticationLoginWithSteamRequest](/ja-jp/services/playfab/api-references/c/pfauthenticationtypes/structs/pfauthenticationloginwithsteamrequest.md)
