This documentation is archived and is not being maintained.

ManagementPath Members

ManagementPath overview

Public Constructors

public constructorManagementPath Constructor Overloaded. Initializes a new instance of the ManagementPath class.

Public Properties

public propertyClassName Gets or sets the class portion of the path.
public propertystatic (Shared in Visual Basic)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.
public propertyIsClass Gets or sets a value indicating whether this is a class path.
public propertyIsInstance Gets or sets a value indicating whether this is an instance path.
public propertyIsSingleton Gets or sets a value indicating whether this is a singleton instance path.
public propertyNamespacePath Gets or sets the namespace part of the path. Note that this does not include the server name, which can be retrieved separately.
public propertyPath Gets or sets the string representation of the full path in the object.
public propertyRelativePath Gets or sets the relative path: class name and keys only.
public propertyServer Gets or sets the server part of the path.

Public Methods

public methodClone Returns a copy of the ManagementPath.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodSetAsClass Sets the path as a new class path. This means that the path must have a class name but not key values.
public methodSetAsSingleton 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.
public methodToString Overridden. Returns the full object path as the string representation.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

Explicit Interface Implementations

ICloneable.Clone Standard Clone returns a copy of this ManagementPath as a generic "Object" type

See Also

ManagementPath Class | System.Management Namespace

Show: