Windows 8使用Live ID作爲用戶名。我如何在C#中獲得這個LiveID?如何獲取Windows 8 Live ID
回答
也許Windows.System.UserProfile.UserInformation包含一些相關數據。
我試過引用Windows.System命名空間,但是我無法在新創建的WPF解決方案中找到它,即使解決方案使用的是.NET Framework 4.5,你能告訴我如何看到Windows.System的命名空間?非常感謝。 – user1343145 2012-04-23 10:03:19
@ user1343145 - 這是WinRT唯一的功能,不是.NET 4.5的功能 – 2012-08-27 16:22:40
按設計劃分的Metro應用程序限制訪問許多他們不應該真正需要的信息,我想這可能就是其中之一。
的WinRT可以訪問Windows.System.UserProfile.UserInformation
類(如CodeCaster建議),但我查了一下,從那裏所有的方法只有GetDisplayNameAsync()
可能會返回現場ID(電子郵件),而且只有當第一/姓氏未設置上戶口。
(此外,大多數的這個類中的方法需要設置企業認證能力,這是not really welcome in the Store,而且the documentation of the class目前不好。)
對於single-sign-on experience,你可能寧願使用Live軟件開發工具包。
- 1. 從PC獲取Windows Live匿名ID?
- 2. 如何在Windows 8中以GUID格式獲取硬件ID
- 3. Windows Live ID錯誤1017
- 4. ASP.NET MVC中的Windows Live ID
- 5. Windows mobile,如何獲取ID和串行?
- 6. Windows 8 Live Tile每分鐘更新
- 7. Windows Live ID繼續按鈕損壞
- 8. 通過HttpRequest的Windows Live ID登錄
- 9. 如何更改OAuth windows live ID登錄按鈕的圖像?
- 10. Windows Live ID是否爲OpenID提供者?
- 11. Hotmail/Windows Live的開放ID端點
- 12. 獲取Windows會話ID
- 13. 如何編寫包含我的Windows Live ID的HttpRequest?
- 14. AZURE ACS - Windows Live ID:如何識別唯一用戶
- 15. Windows Live Authenticonon
- 16. 如何在Drupal 8中代表節點ID(nid)獲取tid?
- 17. 如何在IE中通過ID獲取元素? (Visual Studio的8?)
- 18. Paypal Live App ID
- 19. Windows 8 Metro:如何獲得點擊GridViewItem?
- 20. 如何獲得的WinRT/Windows 8的
- 21. 在GridView中獲取項目Windows 8
- 22. 獲取可執行的Windows 8應用
- 23. 如何獲取windows phone 8中錢包的功能?
- 24. 如何獲取System.Windows.Media.Color來自HEX Windows 8應用程序
- 25. 如何獲取錄製視頻的縮略圖 - Windows Phone 8?
- 26. 適用於Windows Phone 7的Windows Live ID身份驗證
- 27. 在Windows Phone 7上使用Windows Live ID單點登錄
- 28. 如何從Windows Live獲取用戶的聯繫人電子郵件數據?
- 29. Omniauth + windows live
- 30. 如何獲取Twitter #hashtag ID
你想要做什麼?更多的數據將有所幫助... – 2012-07-15 03:33:46