Export (0) Print
Expand All
Expand Minimize

Win32_AssociatedBattery class

[The Win32_AssociatedBattery association WMI class is no longer available for use as of Windows Vista because the uninterrupted power supply (UPS) service is no longer available. For more information, see Win32_UninterruptiblePowerSupply.]

Windows Server 2003 and Windows XP:  The Win32_AssociatedBattery association WMI class relates a logical device and the battery it is using.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

class Win32_AssociatedBattery : CIM_AssociatedBattery
{
  CIM_Battery       REF Antecedent;
  CIM_LogicalDevice REF Dependent;
};

Members

The Win32_AssociatedBattery class has these types of members:

Properties

The Win32_AssociatedBattery class has these properties.

Antecedent
Data type: CIM_Battery
Access type: Read-only
Qualifiers: Key

Reference to the CIM_Battery instance representing the properties of a battery used with the logical device. This property is inherited from CIM_Dependency.

Dependent
Data type: CIM_LogicalDevice
Access type: Read-only
Qualifiers: Key

Reference to the CIM_LogicalDevice instance representing the properties of a logical device using the battery. This property is inherited from CIM_Dependency.

Remarks

The Win32_AssociatedBattery class is derived from CIM_AssociatedBattery.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

End of client support

Windows XP

End of server support

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

See also

Computer System Hardware Classes

 

 

Show:
© 2014 Microsoft