The
Win32_AssociatedBattery association
WMI class relates a logical device and the battery it is using. Beginning with Windows Vista, this class is obsolete and is not available because the uninterrupted power supply (UPS) service is no longer available. For more information, see Win32_UninterruptiblePowerSupply.
Windows Server 2003, Windows XP, and Windows 2000: This class is available.
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;
};
Methods
The Win32_AssociatedBattery class does not define any methods.
Properties
The Win32_AssociatedBattery class defines the following 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 2000 Professional |
| Minimum supported server | Windows 2000 Server |
| MOF | Cimwin32.mof |
| DLL | Cimwin32.dll |
| Namespace | \root\cimv2 |
See Also
- Computer System Hardware Classes
Send comments about this topic to Microsoft
Build date: 11/3/2009