C# Класс CSharpAnalytics.WindowsStoreSystemInformation

Obtain system information not conveniently exposed by WinRT APIs.
Microsoft doesn't really want you getting this information and makes it difficult. The techniques used here are not bullet proof but are good enough for analytics. Do not use these methods or techniques for anything more important than that.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetDeviceCategoryAsync ( ) : Task

Get the device category this computer belongs to.

GetDeviceManufacturerAsync ( ) : Task

Get the name of the manufacturer of this computer.

GetDeviceModelAsync ( ) : Task

Get the name of the model of this computer.

GetProcessorArchitecture ( ) : ProcessorArchitecture

Get the processor architecture of this computer.

GetSystemUserAgent ( ) : Task

Build a system user agent string that contains the Windows version number and CPU architecture.

GetWindowsVersionAsync ( ) : Task

Get the version of Windows for this computer.

Приватные методы

Метод Описание
FormatForUserAgent ( ProcessorArchitecture architecture ) : string

Format a ProcessorArchitecture as it would be expected in a user agent of a browser.

GetHalDevice ( ) : Task

Attempt to find the HAL (Hardware Abstraction Layer) device for this computer.

GetNativeSystemInfo ( _SYSTEM_INFO &lpSystemInfo ) : void
IsMicrosoftHal ( object>.IReadOnlyDictionary properties ) : bool

Determine if this device represents a Microsoft-provided HAL.

Описание методов

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

Get the device category this computer belongs to.
public static GetDeviceCategoryAsync ( ) : Task
Результат Task

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

Get the name of the manufacturer of this computer.
public static GetDeviceManufacturerAsync ( ) : Task
Результат Task

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

Get the name of the model of this computer.
public static GetDeviceModelAsync ( ) : Task
Результат Task

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

Get the processor architecture of this computer.
public static GetProcessorArchitecture ( ) : ProcessorArchitecture
Результат ProcessorArchitecture

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

Build a system user agent string that contains the Windows version number and CPU architecture.
public static GetSystemUserAgent ( ) : Task
Результат Task

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

Get the version of Windows for this computer.
public static GetWindowsVersionAsync ( ) : Task
Результат Task