獲取系統信息
~~~
Windows.System.Profile.AnalyticsVersionInfo analyticsVersion = Windows.System.Profile.AnalyticsInfo.VersionInfo;
reminder = analyticsVersion.DeviceFamily;
ulong v = ulong.Parse(Windows.System.Profile.AnalyticsInfo.VersionInfo.DeviceFamilyVersion);
ulong v1 = ( v & 0xFFFF000000000000L ) >> 48;
ulong v2 = ( v & 0x0000FFFF00000000L ) >> 32;
ulong v3 = ( v & 0x00000000FFFF0000L ) >> 16;
ulong v4 = ( v & 0x000000000000FFFFL );
reminder = $"{v1}.{v2}.{v3}.{v4}";
Windows.ApplicationModel.Package package = Windows.ApplicationModel.Package.Current;
reminder = package.Id.Architecture.ToString();
reminder = package.DisplayName;
EasClientDeviceInformation eas = new EasClientDeviceInformation();
reminder= eas.SystemManufacturer;
~~~
reminder把字符串輸出到textbox
Windows.Desktop
10.0.10586.29
X86
參考:[https://www.suchan.cz/2015/08/uwp-quick-tip-getting-device-os-and-app-info/](https://www.suchan.cz/2015/08/uwp-quick-tip-getting-device-os-and-app-info/)
- 前言
- UWP win10 app 新關鍵字x:Bing
- win10應用 UWP 使用MD5算法
- win10 UWP讀寫文件
- UWP appButtonBar樣式
- C# 6.0 $"Hello {csdn}"
- Win10 UWP xaml 延遲加載元素
- UWP xaml 圓形頭像
- UWP 繪制圖形
- win10 uwp 通知Toast
- win10 UWP 顯示地圖
- win10 uwp 參考
- win10 uwp clone
- win10 uwp 裝機必備應用 含源代碼
- RichEditBox 使用自定義菜單
- win10 UWP FlipView
- win10 UWP 獲取系統信息
- win10 UWP 申請微軟開發者
- win10 UWP button
- win10 UWP Markdown 含源代碼
- win10 UWP 應用設置
- win10 UWP 九幽數據分析
- win10 UWP 圓形等待
- win10 UWP 標題欄后退
- win10 UWP 單元測試
- win10 UWP 你寫我讀
- win10 UWP RSS閱讀器
- win10 UWP MessageDialog 和 ContentDialog
- win10 UWP Hmac
- win10 UWP GET Post
- Win10 UWP Intro to controls and events
- win10 UWP Controls by function
- win10 uwp App-to-app communication 應用通信