ManagementBaseObject Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains the basic elements of a management object. It serves as a base class to more specific management object classes.
public ref class ManagementBaseObject : System::ComponentModel::Component, ICloneable, System::Runtime::Serialization::ISerializable
public class ManagementBaseObject : System.ComponentModel.Component, ICloneable, System.Runtime.Serialization.ISerializable
type ManagementBaseObject = class
inherit Component
interface ICloneable
interface ISerializable
Public Class ManagementBaseObject
Inherits Component
Implements ICloneable, ISerializable
- Inheritance
- Derived
- Implements
Constructors
| Name | Description |
|---|---|
| ManagementBaseObject(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of the ManagementBaseObject class that is serializable. |
Properties
| Name | Description |
|---|---|
| ClassPath |
Gets the path to the management object's class. |
| 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. |
| Properties |
Gets a collection of PropertyData objects describing the properties of the management object. |
| 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. |
| 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 "__". |
Methods
| Name | Description |
|---|---|
| Clone() |
Returns a copy of the object. |
| CompareTo(ManagementBaseObject, ComparisonSettings) |
Compares this object to another, based on specified options. |
| Dispose() |
Releases the unmanaged resources used by the ManagementBaseObject. |
| Equals(Object) |
Compares two management objects. |
| GetHashCode() |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
| GetObjectData(SerializationInfo, StreamingContext) |
Populates a SerializationInfo with the data necessary to deserialize the field represented by this instance. |
| GetPropertyQualifierValue(String, String) |
Returns the value of the specified property qualifier. |
| GetPropertyValue(String) |
Gets an equivalent accessor to a property's value. |
| GetQualifierValue(String) |
Gets the value of the specified qualifier. |
| GetText(TextFormat) |
Returns a textual representation of the object in the specified format. |
| SetPropertyQualifierValue(String, String, Object) |
Sets the value of the specified property qualifier. |
| SetPropertyValue(String, Object) |
Sets the value of the named property. |
| SetQualifierValue(String, Object) |
Sets the value of the named qualifier. |
Operators
| Name | Description |
|---|---|
| Explicit(ManagementBaseObject to IntPtr) |
Provides the internal WMI object represented by a ManagementObject. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| ISerializable.GetObjectData(SerializationInfo, StreamingContext) |
Implements the ISerializable interface and returns the data needed to serialize the ManagementBaseObject. |