The following sample should work if you meet the following prerequisites:
- , API, "Microsoft.Xbox.Services.UWP.CSharp"
- Microsoft.Xbox.Services.UWP.CSharp .
- Newtonsoft.Json NuGet
1 2 , "" , .
:
XboxLiveUser user = new XboxLiveUser();
await user.SignInSilentlyAsync();
if (user.IsSignedIn)
{
XboxLiveContext context = new XboxLiveContext(user);
PeopleHubService peoplehub = new PeopleHubService(context.Settings, context.AppConfig);
XboxSocialUser socialuser = await peoplehub.GetProfileInfo(user, SocialManagerExtraDetailLevel.None);
}
, . :
CS0103 "UserPicker" ... \System\UserImpl.cs 142 Active
, , Win 10.0 Build 14393.