天天看點

win10 UWP 擷取系統資訊

擷取系統資訊

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 & L ) >> ;
            ulong v2 = ( v & L ) >> ;
            ulong v3 = ( v & L ) >> ;
            ulong v4 = ( v & L );
            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/

<script type="text/javascript"> $(function () { $('pre.prettyprint code').each(function () { var lines = $(this).text().split('\n').length; var $numbering = $('<ul/>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('<li/>').text(i)); }; $numbering.fadeIn(1700); }); }); </script>

轉載于:https://www.cnblogs.com/lindexi/p/6949716.html

繼續閱讀