ManagementClass Class
TOC
Collapse the table of content
Expand the table of content

ManagementClass Class

 

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. For more information, see "Win32 Classes" in the Windows Management Instrumentation documentation in the MSDN Library at http://msdn.microsoft.com/library.

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

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

[SerializableAttribute]
public class ManagementClass : ManagementObject

NameDescription
System_CAPS_pubmethodManagementClass()

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

System_CAPS_pubmethodManagementClass(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. For more information, see "Win32 Classes" in the Windows Management Instrumentation documentation in the MSDN Library at http://msdn.microsoft.com/library.

System_CAPS_pubmethodManagementClass(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. For more information, see "Win32 Classes" in the Windows Management Instrumentation documentation in the MSDN Library at http://msdn.microsoft.com/library.

System_CAPS_pubmethodManagementClass(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. For more information, see "Win32 Classes" in the Windows Management Instrumentation documentation in the MSDN Library at http://msdn.microsoft.com/library.

System_CAPS_protmethodManagementClass(SerializationInfo, StreamingContext)

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

System_CAPS_pubmethodManagementClass(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. For more information, see "Win32 Classes" in the Windows Management Instrumentation documentation in the MSDN Library at http://msdn.microsoft.com/library.

System_CAPS_pubmethodManagementClass(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. For more information, see "Win32 Classes" in the Windows Management Instrumentation documentation in the MSDN Library at http://msdn.microsoft.com/library.

System_CAPS_pubmethodManagementClass(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. For more information, see "Win32 Classes" in the Windows Management Instrumentation documentation in the MSDN Library at http://msdn.microsoft.com/library.

NameDescription
System_CAPS_protpropertyCanRaiseEvents

Gets a value indicating whether the component can raise an event.(Inherited from Component.)

System_CAPS_pubpropertyClassPath

Gets or sets the path to the object's class.(Inherited from ManagementObject.)

System_CAPS_pubpropertyContainer

Gets the IContainer that contains the Component.(Inherited from Component.)

System_CAPS_pubpropertyDerivation

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

System_CAPS_protpropertyDesignMode

Gets a value that indicates whether the Component is currently in design mode.(Inherited from Component.)

System_CAPS_protpropertyEvents

Gets the list of event handlers that are attached to this Component.(Inherited from Component.)

System_CAPS_pubpropertyItem[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.)

System_CAPS_pubpropertyMethods

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

System_CAPS_pubpropertyOptions

Gets or sets additional information to use when retrieving the object.(Inherited from ManagementObject.)

System_CAPS_pubpropertyPath

Gets or sets the path of the WMI class to which the ManagementClass object is bound.(Overrides ManagementObject.Path.)

System_CAPS_pubpropertyProperties

Gets a collection of PropertyData objects describing the properties of the management object.(Inherited from ManagementBaseObject.)

System_CAPS_pubpropertyQualifiers

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

System_CAPS_pubpropertyScope

Gets or sets the scope in which this object resides.(Inherited from ManagementObject.)

System_CAPS_pubpropertySite

Gets or sets the ISite of the Component.(Inherited from Component.)

System_CAPS_pubpropertySystemProperties

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

NameDescription
System_CAPS_pubmethodClone()

Returns a copy of the object.(Overrides ManagementObject.Clone().)

System_CAPS_pubmethodCompareTo(ManagementBaseObject, ComparisonSettings)

Compares this object to another, based on specified options.(Inherited from ManagementBaseObject.)

System_CAPS_pubmethodCopyTo(ManagementOperationObserver, ManagementPath)

Copies the object to a different location, asynchronously.(Inherited from ManagementObject.)

System_CAPS_pubmethodCopyTo(ManagementOperationObserver, ManagementPath, PutOptions)

Copies the object to a different location, asynchronously.(Inherited from ManagementObject.)

System_CAPS_pubmethodCopyTo(ManagementOperationObserver, String)

Copies the object to a different location, asynchronously.(Inherited from ManagementObject.)

System_CAPS_pubmethodCopyTo(ManagementOperationObserver, String, PutOptions)

Copies the object to a different location, asynchronously.(Inherited from ManagementObject.)

System_CAPS_pubmethodCopyTo(ManagementPath)

Copies the object to a different location.(Inherited from ManagementObject.)

System_CAPS_pubmethodCopyTo(ManagementPath, PutOptions)

Copies the object to a different location.(Inherited from ManagementObject.)

System_CAPS_pubmethodCopyTo(String)

Copies the object to a different location.(Inherited from ManagementObject.)

System_CAPS_pubmethodCopyTo(String, PutOptions)

Copies the object to a different location.(Inherited from ManagementObject.)

System_CAPS_pubmethodCreateInstance()

Initializes a new instance of the WMI class.

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

System_CAPS_pubmethodDelete()

Deletes the object.(Inherited from ManagementObject.)

System_CAPS_pubmethodDelete(DeleteOptions)

Deletes the object.(Inherited from ManagementObject.)

System_CAPS_pubmethodDelete(ManagementOperationObserver)

Deletes the object.(Inherited from ManagementObject.)

System_CAPS_pubmethodDelete(ManagementOperationObserver, DeleteOptions)

Deletes the object.(Inherited from ManagementObject.)

System_CAPS_pubmethodDerive(String)

Derives a new class from this class.

System_CAPS_pubmethodDispose()

Releases all resources used by the Component.(Inherited from ManagementObject.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the Component and optionally releases the managed resources.(Inherited from Component.)

System_CAPS_pubmethodEquals(Object)

Compares two management objects.(Inherited from ManagementBaseObject.)

System_CAPS_protmethodFinalize()

Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.(Inherited from Component.)

System_CAPS_pubmethodGet()

Binds WMI class information to the management object.(Inherited from ManagementObject.)

System_CAPS_pubmethodGet(ManagementOperationObserver)

Binds to the management object asynchronously.(Inherited from ManagementObject.)

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetInstances()

Returns the collection of all instances of the class.

System_CAPS_pubmethodGetInstances(EnumerationOptions)

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

System_CAPS_pubmethodGetInstances(ManagementOperationObserver)

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

System_CAPS_pubmethodGetInstances(ManagementOperationObserver, EnumerationOptions)

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

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetMethodParameters(String)

Returns a ManagementBaseObject representing the list of input parameters for a method.(Inherited from ManagementObject.)

System_CAPS_protmethodGetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data necessary to deserialize the field represented by this instance. (Overrides ManagementObject.GetObjectData(SerializationInfo, StreamingContext).)

System_CAPS_pubmethodGetPropertyQualifierValue(String, String)

Returns the value of the specified property qualifier.(Inherited from ManagementBaseObject.)

System_CAPS_pubmethodGetPropertyValue(String)

Gets an equivalent accessor to a property's value.(Inherited from ManagementBaseObject.)

System_CAPS_pubmethodGetQualifierValue(String)

Gets the value of the specified qualifier. (Inherited from ManagementBaseObject.)

System_CAPS_pubmethodGetRelated()

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

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

System_CAPS_pubmethodGetRelated(ManagementOperationObserver, String)

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

System_CAPS_pubmethodGetRelated(ManagementOperationObserver, String, String, String, String, String, String, Boolean, EnumerationOptions)

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

System_CAPS_pubmethodGetRelated(String)

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

System_CAPS_pubmethodGetRelated(String, String, String, String, String, String, Boolean, EnumerationOptions)

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

System_CAPS_pubmethodGetRelatedClasses()

Retrieves classes related to the WMI class.

System_CAPS_pubmethodGetRelatedClasses(ManagementOperationObserver)

Retrieves classes related to the WMI class, asynchronously.

System_CAPS_pubmethodGetRelatedClasses(ManagementOperationObserver, String)

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

System_CAPS_pubmethodGetRelatedClasses(ManagementOperationObserver, String, String, String, String, String, String, EnumerationOptions)

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

System_CAPS_pubmethodGetRelatedClasses(String)

Retrieves classes related to the WMI class.

System_CAPS_pubmethodGetRelatedClasses(String, String, String, String, String, String, EnumerationOptions)

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

System_CAPS_pubmethodGetRelationshipClasses()

Retrieves relationship classes that relate the class to others.

System_CAPS_pubmethodGetRelationshipClasses(ManagementOperationObserver)

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

System_CAPS_pubmethodGetRelationshipClasses(ManagementOperationObserver, String)

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

System_CAPS_pubmethodGetRelationshipClasses(ManagementOperationObserver, String, String, String, EnumerationOptions)

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

System_CAPS_pubmethodGetRelationshipClasses(String)

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

System_CAPS_pubmethodGetRelationshipClasses(String, String, String, EnumerationOptions)

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

System_CAPS_pubmethodGetRelationships()

Gets a collection of associations to the object.(Inherited from ManagementObject.)

System_CAPS_pubmethodGetRelationships(ManagementOperationObserver)

Gets a collection of associations to the object.(Inherited from ManagementObject.)

System_CAPS_pubmethodGetRelationships(ManagementOperationObserver, String)

Gets a collection of associations to the object.(Inherited from ManagementObject.)

System_CAPS_pubmethodGetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions)

Gets a collection of associations to the object.(Inherited from ManagementObject.)

System_CAPS_pubmethodGetRelationships(String)

Gets a collection of associations to the object.(Inherited from ManagementObject.)

System_CAPS_pubmethodGetRelationships(String, String, String, Boolean, EnumerationOptions)

Gets a collection of associations to the object.(Inherited from ManagementObject.)

System_CAPS_protmethodGetService(Type)

Returns an object that represents a service provided by the Component or by its Container.(Inherited from Component.)

System_CAPS_pubmethodGetStronglyTypedClassCode(Boolean, Boolean)

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

System_CAPS_pubmethodGetStronglyTypedClassCode(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.

System_CAPS_pubmethodGetSubclasses()

Returns the collection of all subclasses for the class.

System_CAPS_pubmethodGetSubclasses(EnumerationOptions)

Retrieves the subclasses of the class using the specified options.

System_CAPS_pubmethodGetSubclasses(ManagementOperationObserver)

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

System_CAPS_pubmethodGetSubclasses(ManagementOperationObserver, EnumerationOptions)

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

System_CAPS_pubmethodGetText(TextFormat)

Returns a textual representation of the object in the specified format. (Inherited from ManagementBaseObject.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodInvokeMethod(ManagementOperationObserver, String, ManagementBaseObject, InvokeMethodOptions)

Invokes a method on the object, asynchronously.(Inherited from ManagementObject.)

System_CAPS_pubmethodInvokeMethod(ManagementOperationObserver, String, Object[])

Invokes a method on the object, asynchronously.(Inherited from ManagementObject.)

System_CAPS_pubmethodInvokeMethod(String, ManagementBaseObject, InvokeMethodOptions)

Invokes a method on the WMI object. The input and output parameters are represented as ManagementBaseObject objects.(Inherited from ManagementObject.)

System_CAPS_pubmethodInvokeMethod(String, Object[])

Invokes a method on the object.(Inherited from ManagementObject.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodPut()

Commits the changes to the object.(Inherited from ManagementObject.)

System_CAPS_pubmethodPut(ManagementOperationObserver)

Commits the changes to the object, asynchronously.(Inherited from ManagementObject.)

System_CAPS_pubmethodPut(ManagementOperationObserver, PutOptions)

Commits the changes to the object asynchronously and using the specified options.(Inherited from ManagementObject.)

System_CAPS_pubmethodPut(PutOptions)

Commits the changes to the object.(Inherited from ManagementObject.)

System_CAPS_pubmethodSetPropertyQualifierValue(String, String, Object)

Sets the value of the specified property qualifier.(Inherited from ManagementBaseObject.)

System_CAPS_pubmethodSetPropertyValue(String, Object)

Sets the value of the named property.(Inherited from ManagementBaseObject.)

System_CAPS_pubmethodSetQualifierValue(String, Object)

Sets the value of the named qualifier.(Inherited from ManagementBaseObject.)

System_CAPS_pubmethodToString()

Returns the full path of the object. This is an override of the default object implementation.(Inherited from ManagementObject.)

NameDescription
System_CAPS_pubeventDisposed

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

.NET Framework
Available since 1.1

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

Return to top
Show:
© 2016 Microsoft