ManagementBaseObject Class

Definition

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
[System.Serializable]
public class ManagementBaseObject : System.ComponentModel.Component, ICloneable, System.Runtime.Serialization.ISerializable
type ManagementBaseObject = class
    inherit Component
    interface ICloneable
    interface ISerializable
[<System.Serializable>]
type ManagementBaseObject = class
    inherit Component
    interface ICloneable
    interface ISerializable
Public Class ManagementBaseObject
Inherits Component
Implements ICloneable, ISerializable
Inheritance
ManagementBaseObject
Derived
Attributes
Implements

Constructors

ManagementBaseObject(SerializationInfo, StreamingContext)
Obsolete.

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

Properties

CanRaiseEvents

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

(Inherited from Component)
ClassPath

Gets the path to the management 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.

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.

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 "__".

Methods

Clone()

Returns a copy of the object.

CompareTo(ManagementBaseObject, ComparisonSettings)

Compares this object to another, based on specified options.

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

Releases the unmanaged resources used by the ManagementBaseObject.

Dispose()

Releases all resources used by the Component.

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

GetHashCode()

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

GetLifetimeService()
Obsolete.

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

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

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.

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

ToString()

Returns a String containing the name of the Component, if any. This method should not be overridden.

(Inherited from Component)

Operators

Explicit(ManagementBaseObject to IntPtr)

Provides the internal WMI object represented by a 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.

Applies to