ManagementObject Class (System.Management)

Switch View :
ScriptFree
.NET Framework Class Library
ManagementObject Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a WMI instance.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      System.Management.ManagementBaseObject
        System.Management.ManagementObject
          System.Management.ManagementClass

Namespace:  System.Management
Assembly:  System.Management (in System.Management.dll)
Syntax

Visual Basic

<SerializableAttribute> _
Public Class ManagementObject _
	Inherits ManagementBaseObject _
	Implements ICloneable
C#

[SerializableAttribute]
public class ManagementObject : ManagementBaseObject, 
	ICloneable
Visual C++

[SerializableAttribute]
public ref class ManagementObject : public ManagementBaseObject, 
	ICloneable
F#

[<SerializableAttribute>]
type ManagementObject =  
    class
        inherit ManagementBaseObject
        interface ICloneable
    end

The ManagementObject type exposes the following members.

Constructors

  Name Description
Public method ManagementObject() Initializes a new instance of the ManagementObject class. This is the default constructor.
Public method ManagementObject(ManagementPath) Initializes a new instance of the ManagementObject class for the specified WMI object path. The path is provided as a ManagementPath.
Public method ManagementObject(String) Initializes a new instance of the ManagementObject class for the specified WMI object path. The path is provided as a string.
Public method ManagementObject(ManagementPath, ObjectGetOptions) Initializes a new instance of the ManagementObject class bound to the specified WMI path, including the specified additional options.
Protected method ManagementObject(SerializationInfo, StreamingContext) Initializes a new instance of the ManagementObject class that is serializable.
Public method ManagementObject(String, ObjectGetOptions) Initializes a new instance of the ManagementObject class bound to the specified WMI path, including the specified additional options. In this variant, the path can be specified as a string.
Public method ManagementObject(ManagementScope, ManagementPath, ObjectGetOptions) Initializes a new instance of the ManagementObject class bound to the specified WMI path that includes the specified options.
Public method ManagementObject(String, String, ObjectGetOptions) Initializes a new instance of the ManagementObject class bound to the specified WMI path, and includes the specified options. The scope and the path are specified as strings.
Top
Properties

  Name Description
Protected property CanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Public property ClassPath Gets or sets the path to the object's class. (Overrides ManagementBaseObject.ClassPath.)
Public property Container Gets the IContainer that contains the Component. (Inherited from Component.)
Protected property DesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Protected property Events Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public property Item Gets access to property values through [] notation. This property is the indexer for the ManagementBaseObject class. You can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String. (Inherited from ManagementBaseObject.)
Public property Options Gets or sets additional information to use when retrieving the object.
Public property Path Gets or sets the object's WMI path.
Public property Properties Gets a collection of PropertyData objects describing the properties of the management object. (Inherited from ManagementBaseObject.)
Public property Qualifiers Gets the collection of QualifierData objects defined on the management object. Each element in the collection holds information such as the qualifier name, value, and flavor. (Inherited from ManagementBaseObject.)
Public property Scope Gets or sets the scope in which this object resides.
Public property Site Gets or sets the ISite of the Component. (Inherited from Component.)
Public property SystemProperties Gets the collection of WMI system properties of the management object (for example, the class name, server, and namespace). WMI system property names begin with "__". (Inherited from ManagementBaseObject.)
Top
Methods

  Name Description
Public method Clone Creates a copy of the object. (Overrides ManagementBaseObject.Clone().)
Public method CompareTo Compares this object to another, based on specified options. (Inherited from ManagementBaseObject.)
Public method CopyTo(ManagementPath) Copies the object to a different location.
Public method CopyTo(String) Copies the object to a different location.
Public method CopyTo(ManagementOperationObserver, ManagementPath) Copies the object to a different location, asynchronously.
Public method CopyTo(ManagementOperationObserver, String) Copies the object to a different location, asynchronously.
Public method CopyTo(ManagementPath, PutOptions) Copies the object to a different location.
Public method CopyTo(String, PutOptions) Copies the object to a different location.
Public method CopyTo(ManagementOperationObserver, ManagementPath, PutOptions) Copies the object to a different location, asynchronously.
Public method CopyTo(ManagementOperationObserver, String, PutOptions) Copies the object to a different location, asynchronously.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Delete() Deletes the object.
Public method Delete(DeleteOptions) Deletes the object.
Public method Delete(ManagementOperationObserver) Deletes the object.
Public method Delete(ManagementOperationObserver, DeleteOptions) Deletes the object.
Public method Dispose() Releases all resources used by the Component.
Protected method Dispose(Boolean) Releases the unmanaged resources used by the Component and optionally releases the managed resources. (Inherited from Component.)
Public method Equals Compares two management objects. (Inherited from ManagementBaseObject.)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method Get() Binds WMI class information to the management object.
Public method Get(ManagementOperationObserver) Binds to the management object asynchronously.
Public method GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (Inherited from ManagementBaseObject.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetMethodParameters Returns a ManagementBaseObject representing the list of input parameters for a method.
Protected method GetObjectData Populates a SerializationInfo with the data necessary to deserialize the field represented by this instance. (Overrides ManagementBaseObject.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetPropertyQualifierValue Returns the value of the specified property qualifier. (Inherited from ManagementBaseObject.)
Public method GetPropertyValue Gets an equivalent accessor to a property's value. (Inherited from ManagementBaseObject.)
Public method GetQualifierValue Gets the value of the specified qualifier. (Inherited from ManagementBaseObject.)
Public method GetRelated() Gets a collection of objects related to the object (associators).
Public method GetRelated(ManagementOperationObserver) Gets a collection of objects related to the object (associators) asynchronously. This call returns immediately, and a delegate is called when the results are available.
Public method GetRelated(String) Gets a collection of objects related to the object (associators).
Public method GetRelated(ManagementOperationObserver, String) Gets a collection of objects related to the object (associators).
Public method GetRelated(String, String, String, String, String, String, Boolean, EnumerationOptions) Gets a collection of objects related to the object (associators).
Public method GetRelated(ManagementOperationObserver, String, String, String, String, String, String, Boolean, EnumerationOptions) Gets a collection of objects related to the object (associators).
Public method GetRelationships() Gets a collection of associations to the object.
Public method GetRelationships(ManagementOperationObserver) Gets a collection of associations to the object.
Public method GetRelationships(String) Gets a collection of associations to the object.
Public method GetRelationships(ManagementOperationObserver, String) Gets a collection of associations to the object.
Public method GetRelationships(String, String, String, Boolean, EnumerationOptions) Gets a collection of associations to the object.
Public method GetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions) Gets a collection of associations to the object.
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method GetText Returns a textual representation of the object in the specified format. (Inherited from ManagementBaseObject.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method InvokeMethod(String, Object[]) Invokes a method on the object.
Public method InvokeMethod(ManagementOperationObserver, String, Object[]) Invokes a method on the object, asynchronously.
Public method InvokeMethod(String, ManagementBaseObject, InvokeMethodOptions) Invokes a method on the WMI object. The input and output parameters are represented as ManagementBaseObject objects.
Public method InvokeMethod(ManagementOperationObserver, String, ManagementBaseObject, InvokeMethodOptions) Invokes a method on the object, asynchronously.
Protected method MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public method Put() Commits the changes to the object.
Public method Put(ManagementOperationObserver) Commits the changes to the object, asynchronously.
Public method Put(PutOptions) Commits the changes to the object.
Public method Put(ManagementOperationObserver, PutOptions) Commits the changes to the object asynchronously and using the specified options.
Public method SetPropertyQualifierValue Sets the value of the specified property qualifier. (Inherited from ManagementBaseObject.)
Public method SetPropertyValue Sets the value of the named property. (Inherited from ManagementBaseObject.)
Public method SetQualifierValue Sets the value of the named qualifier. (Inherited from ManagementBaseObject.)
Public method ToString Returns the full path of the object. This is an override of the default object implementation. (Overrides Component.ToString().)
Top
Events

  Name Description
Public event Disposed Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Top
Explicit Interface Implementations

  Name Description
Explicit interface implemetation Private method ISerializable.GetObjectData Implements the System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the ManagementBaseObject. (Inherited from ManagementBaseObject.)
Top
Version Information

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Platforms

Windows 8 Release Preview, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 SP2, Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Reference