SystemInformation Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class provides info about the app and the system.
public static class SystemInformation
public sealed class SystemInformation
type SystemInformation = class
Public Class SystemInformation
Public NotInheritable Class SystemInformation
- Inheritance
-
SystemInformation
Properties
ApplicationName |
Gets the application's name. |
ApplicationVersion |
Gets the application's version. |
AppUptime |
Gets the length of time this instance of the app has been running. Will be MinValue if TrackAppUse(IActivatedEventArgs, XamlRoot) has not been called yet. |
AvailableMemory |
Gets the available memory. |
Culture |
Gets the user's most preferred culture. |
DeviceFamily |
Gets the device's family. Common values include:
|
DeviceManufacturer |
Gets the device's manufacturer. Will be empty if the manufacturer couldn't be determined (For example: when running in a virtual machine). |
DeviceModel |
Gets the device's model. Will be empty if the model couldn't be determined (For example: when running in a virtual machine). |
FirstUseTime |
Gets the DateTime (in UTC) when the app was launched for the first time. |
FirstVersionInstalled |
Gets the first version of the app that was installed. This will be the current version if a previous version of the app was installed before accessing this property. |
Instance |
Gets the unique instance of SystemInformation. |
IsAppUpdated |
Gets a value indicating whether the app is being used for the first time since being upgraded from an older version. Use this to tell if you should display details about what has changed. |
IsFirstRun |
Gets a value indicating whether the app is being used for the first time since it was installed. Use this to tell if you should do or display something different for the app's first use. |
LastLaunchTime |
Gets the DateTime (in UTC) when the app was last launched, not including this instance. Will be MinValue if TrackAppUse(IActivatedEventArgs, XamlRoot) has not been called yet. |
LastResetTime |
Gets the DateTime (in UTC) when the launch count was last reset. Will be MinValue if TrackAppUse(IActivatedEventArgs, XamlRoot) has not been called yet. |
LaunchCount |
Gets the number of times the app has been launched.
Will be |
LaunchTime |
Gets the DateTime (in UTC) that this instance of the app was launched. Will be MinValue if TrackAppUse(IActivatedEventArgs, XamlRoot) has not been called yet. |
OperatingSystem |
Gets the operating system's name. |
OperatingSystemArchitecture |
Gets the processor architecture. |
OperatingSystemVersion |
Gets the operating system's version. |
PreviousVersionInstalled |
Gets the previous version of the app that was installed. This will be the current version if a previous version of the app was installed before using SystemInformation or if the app is not updated. |
TotalLaunchCount |
Gets the number of times the app has been launched.
Will be |
Methods
AddToAppUptime(TimeSpan) |
Adds to the record of how long the app has been running. Use this to optionally include time spent in background tasks or extended execution. |
LaunchStoreForReviewAsync() |
Launches the store app so the user can leave a review. |
ResetLaunchCount() |
Resets the launch count. |
TrackAppUse(IActivatedEventArgs, XamlRoot) |
Tracks information about the app's launch. |
TrackAppUse(LaunchActivatedEventArgs) |
Tracks information about the app's launch. |