Editar

Compartilhar via


ManagementClass Class

Definition

Represents a Common Information Model (CIM) management class. A management class is a WMI class such as Win32_LogicalDisk, which can represent a disk drive, and Win32_Process, which represents a process such as Notepad.exe. The members of this class enable you to access WMI data using a specific WMI class path.

public ref class ManagementClass : System::Management::ManagementObject
public class ManagementClass : System.Management.ManagementObject
[System.Serializable]
public class ManagementClass : System.Management.ManagementObject
type ManagementClass = class
    inherit ManagementObject
[<System.Serializable>]
type ManagementClass = class
    inherit ManagementObject
Public Class ManagementClass
Inherits ManagementObject
Inheritance
Attributes

Constructors

ManagementClass()

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

ManagementClass(ManagementPath)

Initializes a new instance of the ManagementClass class. The class represents a Common Information Model (CIM) management class from WMI such as Win32_LogicalDisk, which can represent a disk drive, and Win32_Process, which represents a process such as Notepad.exe.

ManagementClass(ManagementPath, ObjectGetOptions)

Initializes a new instance of the ManagementClass class initialized to the given WMI class path using the specified options. The class represents a Common Information Model (CIM) management class from WMI such as Win32_LogicalDisk, which can represent a disk drive, and Win32_Process, which represents a process such as Notepad.exe.

ManagementClass(ManagementScope, ManagementPath, ObjectGetOptions)

Initializes a new instance of the ManagementClass class for the specified WMI class in the specified scope and with the specified options. The class represents a Common Information Model (CIM) management class from WMI such as Win32_LogicalDisk, which can represent a disk drive, and Win32_Process, which represents a process such as Notepad.exe.

ManagementClass(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the ManagementClass class from the specified instances of the SerializationInfo and StreamingContext classes.

ManagementClass(String)

Initializes a new instance of the ManagementClass class initialized to the given path. The class represents a Common Information Model (CIM) management class from WMI such as Win32_LogicalDisk, which can represent a disk drive, and Win32_Process, which represents a process such as Notepad.exe.

ManagementClass(String, ObjectGetOptions)

Initializes a new instance of the ManagementClass class initialized to the given WMI class path using the specified options. The class represents a Common Information Model (CIM) management class from WMI such as Win32_LogicalDisk, which can represent a disk drive, and Win32_Process, which represents a process such as Notepad.exe.

ManagementClass(String, String, ObjectGetOptions)

Initializes a new instance of the ManagementClass class for the specified WMI class, in the specified scope, and with the specified options. The class represents a Common Information Model (CIM) management class from WMI such as Win32_LogicalDisk, which can represent a disk drive, and Win32_Process, which represents a process such as Notepad.exe.

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.

(Inherited from ManagementObject)
Container

Gets the IContainer that contains the Component.

(Inherited from Component)
Derivation

Gets an array containing all WMI classes in the inheritance hierarchy from this class to the top of the hierarchy.

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

Gets or sets a collection of MethodData objects that represent the methods defined in the WMI class.

Options

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

(Inherited from ManagementObject)
Path

Gets or sets the path of the WMI class to which the ManagementClass object is bound.

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.

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

Returns a copy of the object.

CompareTo(ManagementBaseObject, ComparisonSettings)

Compares this object to another, based on specified options.

(Inherited from ManagementBaseObject)
CopyTo(ManagementOperationObserver, ManagementPath)

Copies the object to a different location, asynchronously.

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

Copies the object to a different location, asynchronously.

(Inherited from ManagementObject)
CopyTo(ManagementOperationObserver, String)

Copies the object to a different location, asynchronously.

(Inherited from ManagementObject)
CopyTo(ManagementOperationObserver, String, PutOptions)

Copies the object to a different location, asynchronously.

(Inherited from ManagementObject)
CopyTo(ManagementPath)

Copies the object to a different location.

(Inherited from ManagementObject)
CopyTo(ManagementPath, PutOptions)

Copies the object to a different location.

(Inherited from ManagementObject)
CopyTo(String)

Copies the object to a different location.

(Inherited from ManagementObject)
CopyTo(String, PutOptions)

Copies the object to a different location.

(Inherited from ManagementObject)
CreateInstance()

Initializes a new instance of the WMI class.

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.

(Inherited from ManagementObject)
Delete(DeleteOptions)

Deletes the object.

(Inherited from ManagementObject)
Delete(ManagementOperationObserver)

Deletes the object.

(Inherited from ManagementObject)
Delete(ManagementOperationObserver, DeleteOptions)

Deletes the object.

(Inherited from ManagementObject)
Derive(String)

Derives a new class from this class.

Dispose()

Releases all resources used by the Component.

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

(Inherited from ManagementObject)
Get(ManagementOperationObserver)

Binds to the management object asynchronously.

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

Returns the collection of all instances of the class.

GetInstances(EnumerationOptions)

Returns the collection of all instances of the class using the specified options.

GetInstances(ManagementOperationObserver)

Returns the collection of all instances of the class, asynchronously.

GetInstances(ManagementOperationObserver, EnumerationOptions)

Returns the collection of all instances of the class, asynchronously, using the specified options.

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.

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

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

(Inherited from ManagementObject)
GetRelated(ManagementOperationObserver, String)

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

(Inherited from ManagementObject)
GetRelated(ManagementOperationObserver, String, String, String, String, String, String, Boolean, EnumerationOptions)

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

(Inherited from ManagementObject)
GetRelated(String)

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

(Inherited from ManagementObject)
GetRelated(String, String, String, String, String, String, Boolean, EnumerationOptions)

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

(Inherited from ManagementObject)
GetRelatedClasses()

Retrieves classes related to the WMI class.

GetRelatedClasses(ManagementOperationObserver)

Retrieves classes related to the WMI class, asynchronously.

GetRelatedClasses(ManagementOperationObserver, String)

Retrieves classes related to the WMI class, asynchronously, given the related class name.

GetRelatedClasses(ManagementOperationObserver, String, String, String, String, String, String, EnumerationOptions)

Retrieves classes related to the WMI class, asynchronously, using the specified options.

GetRelatedClasses(String)

Retrieves classes related to the WMI class.

GetRelatedClasses(String, String, String, String, String, String, EnumerationOptions)

Retrieves classes related to the WMI class based on the specified options.

GetRelationshipClasses()

Retrieves relationship classes that relate the class to others.

GetRelationshipClasses(ManagementOperationObserver)

Retrieves relationship classes that relate the class to others, asynchronously.

GetRelationshipClasses(ManagementOperationObserver, String)

Retrieves relationship classes that relate the class to the specified WMI class, asynchronously.

GetRelationshipClasses(ManagementOperationObserver, String, String, String, EnumerationOptions)

Retrieves relationship classes that relate the class according to the specified options, asynchronously.

GetRelationshipClasses(String)

Retrieves relationship classes that relate the class to others, where the endpoint class is the specified class.

GetRelationshipClasses(String, String, String, EnumerationOptions)

Retrieves relationship classes that relate this class to others, according to specified options.

GetRelationships()

Gets a collection of associations to the object.

(Inherited from ManagementObject)
GetRelationships(ManagementOperationObserver)

Gets a collection of associations to the object.

(Inherited from ManagementObject)
GetRelationships(ManagementOperationObserver, String)

Gets a collection of associations to the object.

(Inherited from ManagementObject)
GetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions)

Gets a collection of associations to the object.

(Inherited from ManagementObject)
GetRelationships(String)

Gets a collection of associations to the object.

(Inherited from ManagementObject)
GetRelationships(String, String, String, Boolean, EnumerationOptions)

Gets a collection of associations to the object.

(Inherited from ManagementObject)
GetService(Type)

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

(Inherited from Component)
GetStronglyTypedClassCode(Boolean, Boolean)

Generates a strongly-typed class for a given WMI class.

GetStronglyTypedClassCode(CodeLanguage, String, String)

Generates a strongly-typed class for a given WMI class. This function generates code for Visual Basic, C#, JScript, J#, or C++ depending on the input parameters.

GetSubclasses()

Returns the collection of all subclasses for the class.

GetSubclasses(EnumerationOptions)

Retrieves the subclasses of the class using the specified options.

GetSubclasses(ManagementOperationObserver)

Returns the collection of all classes derived from this class, asynchronously.

GetSubclasses(ManagementOperationObserver, EnumerationOptions)

Retrieves all classes derived from this class, asynchronously, using the specified options.

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.

(Inherited from ManagementObject)
InvokeMethod(ManagementOperationObserver, String, Object[])

Invokes a method on the object, asynchronously.

(Inherited from ManagementObject)
InvokeMethod(String, ManagementBaseObject, InvokeMethodOptions)

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

(Inherited from ManagementObject)
InvokeMethod(String, Object[])

Invokes a method on the object.

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

(Inherited from ManagementObject)
Put(ManagementOperationObserver)

Commits the changes to the object, asynchronously.

(Inherited from ManagementObject)
Put(ManagementOperationObserver, PutOptions)

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

(Inherited from ManagementObject)
Put(PutOptions)

Commits the changes to the object.

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

(Inherited from ManagementObject)

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