ManagementObject ManagementObject ManagementObject ManagementObject Class

Definition

Represents a WMI instance.

public ref class ManagementObject : System::Management::ManagementBaseObject, ICloneable
public class ManagementObject : System.Management.ManagementBaseObject, ICloneable
type ManagementObject = class
    inherit ManagementBaseObject
    interface ICloneable
Public Class ManagementObject
Inherits ManagementBaseObject
Implements ICloneable
Inheritance
Derived
Implements

Constructors

ManagementObject() ManagementObject() ManagementObject() ManagementObject()

Initializes a new instance of the ManagementObject class. This is the default constructor.

ManagementObject(ManagementPath) ManagementObject(ManagementPath) ManagementObject(ManagementPath) ManagementObject(ManagementPath)

Initializes a new instance of the ManagementObject class for the specified WMI object path. The path is provided as a ManagementPath.

ManagementObject(ManagementPath, ObjectGetOptions) ManagementObject(ManagementPath, ObjectGetOptions) ManagementObject(ManagementPath, ObjectGetOptions) ManagementObject(ManagementPath, ObjectGetOptions)

Initializes a new instance of the ManagementObject class bound to the specified WMI path, including the specified additional options.

ManagementObject(ManagementScope, ManagementPath, ObjectGetOptions) ManagementObject(ManagementScope, ManagementPath, ObjectGetOptions) ManagementObject(ManagementScope, ManagementPath, ObjectGetOptions) ManagementObject(ManagementScope, ManagementPath, ObjectGetOptions)

Initializes a new instance of the ManagementObject class bound to the specified WMI path that includes the specified options.

ManagementObject(SerializationInfo, StreamingContext) ManagementObject(SerializationInfo, StreamingContext) ManagementObject(SerializationInfo, StreamingContext) ManagementObject(SerializationInfo, StreamingContext)

Initializes a new instance of the ManagementObject class that is serializable.

ManagementObject(String) ManagementObject(String) ManagementObject(String) ManagementObject(String)

Initializes a new instance of the ManagementObject class for the specified WMI object path. The path is provided as a string.

ManagementObject(String, ObjectGetOptions) ManagementObject(String, ObjectGetOptions) ManagementObject(String, ObjectGetOptions) 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.

ManagementObject(String, String, ObjectGetOptions) ManagementObject(String, String, ObjectGetOptions) ManagementObject(String, String, ObjectGetOptions) 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.

Properties

CanRaiseEvents CanRaiseEvents CanRaiseEvents CanRaiseEvents

Gets a value indicating whether the component can raise an event.

(Inherited from Component)
ClassPath ClassPath ClassPath ClassPath

Gets or sets the path to the object's class.

Container Container Container Container

Gets the IContainer that contains the Component.

(Inherited from Component)
DesignMode DesignMode DesignMode DesignMode

Gets a value that indicates whether the Component is currently in design mode.

(Inherited from Component)
Events Events Events Events

Gets the list of event handlers that are attached to this Component.

(Inherited from Component)
Item[String] Item[String] Item[String] Item[String]

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)
Options Options Options Options

Gets or sets additional information to use when retrieving the object.

Path Path Path Path

Gets or sets the object's WMI path.

Properties Properties Properties Properties

Gets a collection of PropertyData objects describing the properties of the management object.

(Inherited from ManagementBaseObject)
Qualifiers Qualifiers Qualifiers 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)
Scope Scope Scope Scope

Gets or sets the scope in which this object resides.

Site Site Site Site

Gets or sets the ISite of the Component.

(Inherited from Component)
SystemProperties SystemProperties SystemProperties 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)

Methods

Clone() Clone() Clone() Clone()

Creates a copy of the object.

CompareTo(ManagementBaseObject, ComparisonSettings) CompareTo(ManagementBaseObject, ComparisonSettings) CompareTo(ManagementBaseObject, ComparisonSettings) CompareTo(ManagementBaseObject, ComparisonSettings)

Compares this object to another, based on specified options.

(Inherited from ManagementBaseObject)
CopyTo(ManagementOperationObserver, ManagementPath) CopyTo(ManagementOperationObserver, ManagementPath) CopyTo(ManagementOperationObserver, ManagementPath) CopyTo(ManagementOperationObserver, ManagementPath)

Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, ManagementPath, PutOptions) CopyTo(ManagementOperationObserver, ManagementPath, PutOptions) CopyTo(ManagementOperationObserver, ManagementPath, PutOptions) CopyTo(ManagementOperationObserver, ManagementPath, PutOptions)

Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, String) CopyTo(ManagementOperationObserver, String) CopyTo(ManagementOperationObserver, String) CopyTo(ManagementOperationObserver, String)

Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, String, PutOptions) CopyTo(ManagementOperationObserver, String, PutOptions) CopyTo(ManagementOperationObserver, String, PutOptions) CopyTo(ManagementOperationObserver, String, PutOptions)

Copies the object to a different location, asynchronously.

CopyTo(ManagementPath) CopyTo(ManagementPath) CopyTo(ManagementPath) CopyTo(ManagementPath)

Copies the object to a different location.

CopyTo(ManagementPath, PutOptions) CopyTo(ManagementPath, PutOptions) CopyTo(ManagementPath, PutOptions) CopyTo(ManagementPath, PutOptions)

Copies the object to a different location.

CopyTo(String) CopyTo(String) CopyTo(String) CopyTo(String)

Copies the object to a different location.

CopyTo(String, PutOptions) CopyTo(String, PutOptions) CopyTo(String, PutOptions) CopyTo(String, PutOptions)

Copies the object to a different location.

CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Delete() Delete() Delete() Delete()

Deletes the object.

Delete(DeleteOptions) Delete(DeleteOptions) Delete(DeleteOptions) Delete(DeleteOptions)

Deletes the object.

Delete(ManagementOperationObserver) Delete(ManagementOperationObserver) Delete(ManagementOperationObserver) Delete(ManagementOperationObserver)

Deletes the object.

Delete(ManagementOperationObserver, DeleteOptions) Delete(ManagementOperationObserver, DeleteOptions) Delete(ManagementOperationObserver, DeleteOptions) Delete(ManagementOperationObserver, DeleteOptions)

Deletes the object.

Dispose() Dispose() Dispose() Dispose()

Releases all resources used by the Component.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources used by the Component and optionally releases the managed resources.

(Inherited from Component)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Compares two management objects.

(Inherited from ManagementBaseObject)
Get() Get() Get() Get()

Binds WMI class information to the management object.

Get(ManagementOperationObserver) Get(ManagementOperationObserver) Get(ManagementOperationObserver) Get(ManagementOperationObserver)

Binds to the management object asynchronously.

GetHashCode() GetHashCode() GetHashCode() 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)
GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetMethodParameters(String) GetMethodParameters(String) GetMethodParameters(String) GetMethodParameters(String)

Returns a ManagementBaseObject representing the list of input parameters for a method.

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data necessary to deserialize the field represented by this instance.

GetPropertyQualifierValue(String, String) GetPropertyQualifierValue(String, String) GetPropertyQualifierValue(String, String) GetPropertyQualifierValue(String, String)

Returns the value of the specified property qualifier.

(Inherited from ManagementBaseObject)
GetPropertyValue(String) GetPropertyValue(String) GetPropertyValue(String) GetPropertyValue(String)

Gets an equivalent accessor to a property's value.

(Inherited from ManagementBaseObject)
GetQualifierValue(String) GetQualifierValue(String) GetQualifierValue(String) GetQualifierValue(String)

Gets the value of the specified qualifier.

(Inherited from ManagementBaseObject)
GetRelated() GetRelated() GetRelated() GetRelated()

Gets a collection of objects related to the object (associators).

GetRelated(ManagementOperationObserver) GetRelated(ManagementOperationObserver) GetRelated(ManagementOperationObserver) 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.

GetRelated(ManagementOperationObserver, String) GetRelated(ManagementOperationObserver, String) GetRelated(ManagementOperationObserver, String) GetRelated(ManagementOperationObserver, String)

Gets a collection of objects related to the object (associators).

GetRelated(ManagementOperationObserver, String, String, String, String, String, String, Boolean, EnumerationOptions) GetRelated(ManagementOperationObserver, String, String, String, String, String, String, Boolean, EnumerationOptions) GetRelated(ManagementOperationObserver, String, String, String, String, String, String, Boolean, EnumerationOptions) GetRelated(ManagementOperationObserver, String, String, String, String, String, String, Boolean, EnumerationOptions)

Gets a collection of objects related to the object (associators).

GetRelated(String) GetRelated(String) GetRelated(String) GetRelated(String)

Gets a collection of objects related to the object (associators).

GetRelated(String, String, String, String, String, String, Boolean, EnumerationOptions) GetRelated(String, String, String, String, String, String, Boolean, EnumerationOptions) GetRelated(String, String, String, String, String, String, Boolean, EnumerationOptions) GetRelated(String, String, String, String, String, String, Boolean, EnumerationOptions)

Gets a collection of objects related to the object (associators).

GetRelationships() GetRelationships() GetRelationships() GetRelationships()

Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver) GetRelationships(ManagementOperationObserver) GetRelationships(ManagementOperationObserver) GetRelationships(ManagementOperationObserver)

Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver, String) GetRelationships(ManagementOperationObserver, String) GetRelationships(ManagementOperationObserver, String) GetRelationships(ManagementOperationObserver, String)

Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions) GetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions) GetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions) GetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions)

Gets a collection of associations to the object.

GetRelationships(String) GetRelationships(String) GetRelationships(String) GetRelationships(String)

Gets a collection of associations to the object.

GetRelationships(String, String, String, Boolean, EnumerationOptions) GetRelationships(String, String, String, Boolean, EnumerationOptions) GetRelationships(String, String, String, Boolean, EnumerationOptions) GetRelationships(String, String, String, Boolean, EnumerationOptions)

Gets a collection of associations to the object.

GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Returns an object that represents a service provided by the Component or by its Container.

(Inherited from Component)
GetText(TextFormat) GetText(TextFormat) GetText(TextFormat) GetText(TextFormat)

Returns a textual representation of the object in the specified format.

(Inherited from ManagementBaseObject)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
InvokeMethod(ManagementOperationObserver, String, ManagementBaseObject, InvokeMethodOptions) InvokeMethod(ManagementOperationObserver, String, ManagementBaseObject, InvokeMethodOptions) InvokeMethod(ManagementOperationObserver, String, ManagementBaseObject, InvokeMethodOptions) InvokeMethod(ManagementOperationObserver, String, ManagementBaseObject, InvokeMethodOptions)

Invokes a method on the object, asynchronously.

InvokeMethod(ManagementOperationObserver, String, Object[]) InvokeMethod(ManagementOperationObserver, String, Object[]) InvokeMethod(ManagementOperationObserver, String, Object[]) InvokeMethod(ManagementOperationObserver, String, Object[])

Invokes a method on the object, asynchronously.

InvokeMethod(String, ManagementBaseObject, InvokeMethodOptions) InvokeMethod(String, ManagementBaseObject, InvokeMethodOptions) InvokeMethod(String, ManagementBaseObject, InvokeMethodOptions) InvokeMethod(String, ManagementBaseObject, InvokeMethodOptions)

Invokes a method on the WMI object. The input and output parameters are represented as ManagementBaseObject objects.

InvokeMethod(String, Object[]) InvokeMethod(String, Object[]) InvokeMethod(String, Object[]) InvokeMethod(String, Object[])

Invokes a method on the object.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
Put() Put() Put() Put()

Commits the changes to the object.

Put(ManagementOperationObserver) Put(ManagementOperationObserver) Put(ManagementOperationObserver) Put(ManagementOperationObserver)

Commits the changes to the object, asynchronously.

Put(ManagementOperationObserver, PutOptions) Put(ManagementOperationObserver, PutOptions) Put(ManagementOperationObserver, PutOptions) Put(ManagementOperationObserver, PutOptions)

Commits the changes to the object asynchronously and using the specified options.

Put(PutOptions) Put(PutOptions) Put(PutOptions) Put(PutOptions)

Commits the changes to the object.

SetPropertyQualifierValue(String, String, Object) SetPropertyQualifierValue(String, String, Object) SetPropertyQualifierValue(String, String, Object) SetPropertyQualifierValue(String, String, Object)

Sets the value of the specified property qualifier.

(Inherited from ManagementBaseObject)
SetPropertyValue(String, Object) SetPropertyValue(String, Object) SetPropertyValue(String, Object) SetPropertyValue(String, Object)

Sets the value of the named property.

(Inherited from ManagementBaseObject)
SetQualifierValue(String, Object) SetQualifierValue(String, Object) SetQualifierValue(String, Object) SetQualifierValue(String, Object)

Sets the value of the named qualifier.

(Inherited from ManagementBaseObject)
ToString() ToString() ToString() ToString()

Returns the full path of the object. This is an override of the default object implementation.

Events

Disposed Disposed Disposed Disposed

Occurs when the component is disposed by a call to the Dispose() method.

(Inherited from Component)

Explicit Interface Implementations

ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Implements the ISerializable interface and returns the data needed to serialize the ManagementBaseObject.

(Inherited from ManagementBaseObject)

Applies to