ManagementBaseObject::ClassPath Property
.NET Framework (current version)
Gets the path to the management object's class.
Assembly: System.Management (in System.Management.dll)
Property Value
Type: System.Management::ManagementPath^Returns a ManagementPath that contains the class path to the management object's class.
A ManagementPath that represents the path to the management object's class.
Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
The following example code lists all the classes with their class paths in the root\CIMV2 namespace.
For the \\MyBox\root\cimv2:Win32_LogicalDisk= 'C:' object, the class path is \\MyBox\root\cimv2:Win32_LogicalDisk.
.NET Framework
Available since 1.1
Available since 1.1
Show: