Export (0) Print
Expand All

ManagementBaseObject Class

Contains the basic elements of a management object. It serves as a base class to more specific management object classes.

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

[<SerializableAttribute>]
type ManagementBaseObject =  
    class 
        inherit Component 
        interface ICloneable 
        interface ISerializable 
    end

The ManagementBaseObject type exposes the following members.

  NameDescription
Protected methodManagementBaseObjectInitializes a new instance of the ManagementBaseObject class that is serializable.
Top

  NameDescription
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event. (Inherited from Component.)
Public propertyClassPathGets the path to the management object's class.
Public propertyContainerGets the IContainer that contains the Component. (Inherited from Component.)
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Protected propertyEventsGets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public propertyItemGets 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.
Public propertyPropertiesGets a collection of PropertyData objects describing the properties of the management object.
Public propertyQualifiersGets 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.
Public propertySiteGets or sets the ISite of the Component. (Inherited from Component.)
Public propertySystemPropertiesGets the collection of WMI system properties of the management object (for example, the class name, server, and namespace). WMI system property names begin with "__".
Top

  NameDescription
Public methodCloneReturns a copy of the object.
Public methodCompareToCompares this object to another, based on specified options.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodDispose()
Protected methodDispose(Boolean)Releases the unmanaged resources used by the Component and optionally releases the managed resources. (Inherited from Component.)
Public methodEqualsCompares two management objects. (Overrides Object.Equals(Object).)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public methodGetHashCodeServes as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (Overrides Object.GetHashCode().)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodGetObjectDataPopulates a SerializationInfo with the data necessary to deserialize the field represented by this instance.
Public methodGetPropertyQualifierValueReturns the value of the specified property qualifier.
Public methodGetPropertyValueGets an equivalent accessor to a property's value.
Public methodGetQualifierValueGets the value of the specified qualifier.
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public methodGetTextReturns a textual representation of the object in the specified format.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone()Creates a shallow copy of the current Object. (Inherited from Object.)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public methodSetPropertyQualifierValueSets the value of the specified property qualifier.
Public methodSetPropertyValueSets the value of the named property.
Public methodSetQualifierValueSets the value of the named qualifier.
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Top

  NameDescription
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Top

  NameDescription
Public operatorStatic memberExplicit(ManagementBaseObject to IntPtr)Provides the internal WMI object represented by a ManagementObject.
Top

  NameDescription
Explicit interface implemetationPrivate methodISerializable.GetObjectDataImplements the System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the ManagementBaseObject.
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft