संपादित करें

इसके माध्यम से साझा किया गया


ManagementObject Class

Definition

Represents a WMI instance.

public ref class ManagementObject : System::Management::ManagementBaseObject, ICloneable
public class ManagementObject : System.Management.ManagementBaseObject, ICloneable
[System.Serializable]
public class ManagementObject : System.Management.ManagementBaseObject, ICloneable
type ManagementObject = class
    inherit ManagementBaseObject
    interface ICloneable
[<System.Serializable>]
type ManagementObject = class
    inherit ManagementBaseObject
    interface ICloneable
Public Class ManagementObject
Inherits ManagementBaseObject
Implements ICloneable
Inheritance
Derived
Attributes
Implements

Constructors

ManagementObject()

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

ManagementObject(ManagementPath, ObjectGetOptions)

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

ManagementObject(ManagementPath)

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

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)
Obsolete.

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

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)

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.

ManagementObject(String)

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

Properties

CanRaiseEvents

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

(Inherited from Component)
ClassPath

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

Container

Gets the IContainer that contains the Component.

(Inherited from Component)
DesignMode

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

(Inherited from Component)
Events

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

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

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

Path

Gets or sets the object's WMI path.

Properties

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

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

Gets or sets the scope in which this object resides.

Site

Gets or sets the ISite of the Component.

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

Creates a copy of the object.

CompareTo(ManagementBaseObject, ComparisonSettings)

Compares this object to another, based on specified options.

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

Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, ManagementPath)

Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, String, PutOptions)

Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, String)

Copies the object to a different location, asynchronously.

CopyTo(ManagementPath, PutOptions)

Copies the object to a different location.

CopyTo(ManagementPath)

Copies the object to a different location.

CopyTo(String, PutOptions)

Copies the object to a different location.

CopyTo(String)

Copies the object to a different location.

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

Deletes the object.

Delete(DeleteOptions)

Deletes the object.

Delete(ManagementOperationObserver, DeleteOptions)

Deletes the object.

Delete(ManagementOperationObserver)

Deletes the object.

Dispose()

Releases all resources used by the Component.

Dispose()

Releases the unmanaged resources used by the ManagementBaseObject.

(Inherited from ManagementBaseObject)
Dispose(Boolean)

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

(Inherited from Component)
Equals(Object)

Compares two management objects.

(Inherited from ManagementBaseObject)
Get()

Binds WMI class information to the management object.

Get(ManagementOperationObserver)

Binds to the management object asynchronously.

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()
Obsolete.

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

(Inherited from MarshalByRefObject)
GetMethodParameters(String)

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

GetObjectData(SerializationInfo, StreamingContext)

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

GetObjectData(SerializationInfo, StreamingContext)

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

(Inherited from ManagementBaseObject)
GetPropertyQualifierValue(String, String)

Returns the value of the specified property qualifier.

(Inherited from ManagementBaseObject)
GetPropertyValue(String)

Gets an equivalent accessor to a property's value.

(Inherited from ManagementBaseObject)
GetQualifierValue(String)

Gets the value of the specified qualifier.

(Inherited from ManagementBaseObject)
GetRelated()

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

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

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

GetRelated(ManagementOperationObserver, String)

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

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(String, String, String, String, String, String, Boolean, EnumerationOptions)

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

GetRelated(String)

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

GetRelationships()

Gets a collection of associations to the object.

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

Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver, String)

Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver)

Gets a collection of associations to the object.

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

Gets a collection of associations to the object.

GetRelationships(String)

Gets a collection of associations to the object.

GetService(Type)

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

(Inherited from Component)
GetText(TextFormat)

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

(Inherited from ManagementBaseObject)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService()
Obsolete.

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

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

Invokes a method on the object, asynchronously.

InvokeMethod(ManagementOperationObserver, String, Object[])

Invokes a method on the object, asynchronously.

InvokeMethod(String, ManagementBaseObject, InvokeMethodOptions)

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

InvokeMethod(String, Object[])

Invokes a method on the object.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
Put()

Commits the changes to the object.

Put(ManagementOperationObserver, PutOptions)

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

Put(ManagementOperationObserver)

Commits the changes to the object, asynchronously.

Put(PutOptions)

Commits the changes to the object.

SetPropertyQualifierValue(String, String, Object)

Sets the value of the specified property qualifier.

(Inherited from ManagementBaseObject)
SetPropertyValue(String, Object)

Sets the value of the named property.

(Inherited from ManagementBaseObject)
SetQualifierValue(String, Object)

Sets the value of the named qualifier.

(Inherited from ManagementBaseObject)
ToString()

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

Events

Disposed

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

(Inherited from Component)

Explicit Interface Implementations

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

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

(Inherited from ManagementBaseObject)

Applies to