Udostępnij za pośrednictwem


SystemInfo Members

Include Protected Members
Include Inherited Members

Stores device information such as CPU information, battery life, amount of memory, and operating system version.

The SystemInfo type exposes the following members.

Methods

 

Name

Description

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Properties

 

Name

Description

Public property

ACLineStatus

Gets or sets a byte that represents whether the device is plugged in.

Public property

AvailPageFile

Gets or sets the maximum amount of memory the current process can commit, in bytes. This value should be smaller than the system-wide available commit. To calculate this value, call GetPerformanceInfo and subtract the value of CommitTotal from CommitLimit.

Public property

AvailPhys

Gets or sets the amount of physical memory currently available in bytes.

Public property

AvailVirtual

Gets or sets the amount of unreserved and uncommitted memory currently in the user-mode part of the virtual address space of the calling process, in bytes.

Public property

BackupBatteryFlag

Gets or sets a byte that represents the charge status of the backup battery.

Public property

BackupBatteryFullLifetime

Gets or sets the number of seconds of backup battery life when at full charge, or 0xFFFFFFFF (BATTERY_LIFE_UNKNOWN) if full lifetime is unknown.

Public property

BackupBatteryLifePercent

Gets or sets the percentage of full backup battery charge remaining.

Public property

BackupBatteryLifetime

Gets or sets the number of seconds of backup battery life remaining, or 0xFFFFFFFF (BATTERY_LIFE_UNKNOWN) if remaining seconds are unknown.

Public property

BatteryFlag

Gets or sets a byte that represents the charge status of the battery.

Public property

BatteryFullLifetime

Gets or sets the number of seconds of battery life when at full charge, or 0xFFFFFFFF (BATTERY_LIFE_UNKNOWN) if full lifetime is unknown.

Public property

BatteryLifePercent

Gets or sets the percentage of full battery charge remaining.

Public property

BatteryLifetime

Gets or sets the number of seconds of battery life remaining, or 0xFFFFFFFF (BATTERY_LIFE_UNKNOWN) if remaining seconds are unknown.

Public property

CurrentTime

Gets or sets the current time on the device based on a value in the operating system.

Public property

InstructionSet

Gets or sets the instruction set type supported by the device's CPU.

Public property

NumberOfProcessors

Gets or sets the number of processors on the device.

Public property

OSBuildNo

Gets or sets the build number of the operating system.

Public property

OSMajor

Gets or sets the major version number of the operating system. For example, for Windows CE version 2.1, the major version number is 2.

Public property

OSMinor

Gets or sets the minor version number of the operating system. For example, for Windows CE version 2.1, the minor version number is 1.

Public property

PageSize

Gets or sets an integer that represents the size in bytes of each page on the device.

Public property

ProcessorArchitecture

Gets or sets the processor architecture type of the device's CPU.

Public property

SystemDefaultLocaleId

Gets or sets the locale ID of the device.

Public property

TotalPageFile

Gets or sets the current size of the committed memory limit, in bytes.

Public property

TotalPhys

Gets or sets the amount of physical memory, in bytes.

Public property

TotalVirtual

Gets or sets the size of the user-mode part of the virtual address space of the calling process, in bytes.

Top

See Also

Reference

SystemInfo Class

Microsoft.SmartDevice.Connectivity Namespace