Table of Contents

Class Battery

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents a battery found within a portable computer system.

public class Battery : GlobalSerializableClassicBase, IComparable<Battery>
Inheritance
Battery
Implements

Constructors

Battery()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.Battery class.

public Battery()

Properties

Chemistry

Gets or sets the chemistry of the battery.

public BatteryChemistry Chemistry { get; set; }

Property Value

BatteryChemistry

ChemistryString

Gets the battery chemistry as a human readable string.

public string ChemistryString { get; set; }

Property Value

string

Description

Gets or sets the description of the battery.

public string Description { get; set; }

Property Value

string

DesignCapacity

Gets or sets the design capacity of the battery in milliwatt-hours. If this property is not supported, returns zero.

public int DesignCapacity { get; set; }

Property Value

int

DesignVoltage

Gets or sets the design voltage of the battery in millivolts.

public long DesignVoltage { get; set; }

Property Value

long

DeviceId

Gets or sets the device ID of the battery - for example "Portable Battery 0".

public string DeviceId { get; set; }

Property Value

string

Location

Gets or sets the location of the battery within the system - for example "MAIN". This information is not available if the Win32_Battery class is used.

public string Location { get; set; }

Property Value

string

Manufacturer

Gets or sets the manufacturer of the battery - for example "Samsung". This information is not available if the Win32_Battery class is used.

public string Manufacturer { get; set; }

Property Value

string

Name

Gets or sets the name of the battery - for example "DELL X409G8B".

public string Name { get; set; }

Property Value

string

Methods

CompareTo(Battery)

Compares two CENTREL.XIA.Configuration.Types.Battery objects to allow sorting alphabetically by name.

public int CompareTo(Battery other)

Parameters

other Battery

The CENTREL.XIA.Configuration.Types.Battery to compare to.

Returns

int

The sort order of the two CENTREL.XIA.Configuration.Types.Battery objects.