CSharpAnalytics.WindowsStoreSystemInformation.GetDeviceModelAsync C# (CSharp) Метод

GetDeviceModelAsync() публичный статический Метод

Get the name of the model of this computer.
public static GetDeviceModelAsync ( ) : Task
Результат Task
        public static async Task<string> GetDeviceModelAsync()
        {
            var rootContainer = await PnpObject.CreateFromIdAsync(PnpObjectType.DeviceContainer, RootContainer, new[] { ModelNameKey });
            return (string)rootContainer.Properties[ModelNameKey];
        }