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, Windows XP, and Windows 2000: 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 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
End of client support | Windows XP |
|
End of server support | Windows Server 2003 |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012