ManagementPath Class
Provides a wrapper for parsing and building paths to WMI objects.
Assembly: System.Management (in System.Management.dll)
| Name | Description | |
|---|---|---|
![]() | ManagementPath() | Initializes a new instance of the ManagementPath class that is empty. This is the default constructor. |
![]() | ManagementPath(String^) | Initializes a new instance of the ManagementPath class for the given path. |
| Name | Description | |
|---|---|---|
![]() | ClassName | Gets or sets the class portion of the path. |
![]() ![]() | DefaultPath | Gets or sets the default scope path used when no scope is specified. The default scope is \\.\root\cimv2, and can be changed by setting this property. |
![]() | IsClass | Gets or sets a value indicating whether this is a class path. |
![]() | IsInstance | Gets or sets a value indicating whether this is an instance path. |
![]() | IsSingleton | Gets or sets a value indicating whether this is a singleton instance path. |
![]() | NamespacePath | Gets or sets the namespace part of the path. Note that this does not include the server name, which can be retrieved separately. |
![]() | Path | Gets or sets the string representation of the full path in the object. |
![]() | RelativePath | Gets or sets the relative path: class name and keys only. |
![]() | Server | Gets or sets the server part of the path. |
| Name | Description | |
|---|---|---|
![]() | Clone() | Returns a copy of the ManagementPath. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | SetAsClass() | Sets the path as a new class path. This means that the path must have a class name but not key values. |
![]() | SetAsSingleton() | Sets the path as a new singleton object path. This means that it is a path to an instance but there are no key values. |
![]() | ToString() | Returns the full object path as the string representation. (Overrides Object::ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICloneable::Clone() | Creates a new object that is a copy of the current instance. |
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.





