ManagementBaseObject ManagementBaseObject ManagementBaseObject ManagementBaseObject Class

定义

包含管理对象的基本元素。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
[System.Serializable]
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
继承
派生
属性
实现

构造函数

ManagementBaseObject(SerializationInfo, StreamingContext) ManagementBaseObject(SerializationInfo, StreamingContext) ManagementBaseObject(SerializationInfo, StreamingContext) ManagementBaseObject(SerializationInfo, StreamingContext)

初始化 ManagementBaseObject 类的可序列化的新实例。Initializes a new instance of the ManagementBaseObject class that is serializable.

属性

CanRaiseEvents CanRaiseEvents CanRaiseEvents CanRaiseEvents

获取一个指示组件是否可以引发事件的值。Gets a value indicating whether the component can raise an event.

(Inherited from Component)
ClassPath ClassPath ClassPath ClassPath

获取管理对象类的路径。Gets the path to the management object's class.

Container Container Container Container

获取 IContainer,它包含 ComponentGets the IContainer that contains the Component.

(Inherited from Component)
DesignMode DesignMode DesignMode DesignMode

获取一个值,用以指示 Component 当前是否处于设计模式。Gets a value that indicates whether the Component is currently in design mode.

(Inherited from Component)
Events Events Events Events

获取附加到此 Component 的事件处理程序的列表。Gets the list of event handlers that are attached to this Component.

(Inherited from Component)
Item[String] Item[String] Item[String] Item[String]

通过 [] 符获取对属性值的访问。Gets access to property values through [] notation. 此属性是 ManagementBaseObject 类的索引器。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. 但是,在某个类上指定 expando 特性将自动提供一个类型为 Object、索引类型为 String 的默认索引属性。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 Properties Properties Properties

获取描述管理对象属性的 PropertyData 对象的集合。Gets a collection of PropertyData objects describing the properties of the management object.

Qualifiers Qualifiers Qualifiers Qualifiers

获取管理对象中定义的 QualifierData 对象的集合。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 Site Site Site

获取或设置 ComponentISiteGets or sets the ISite of the Component.

(Inherited from Component)
SystemProperties SystemProperties SystemProperties SystemProperties

获取管理对象的 WMI 系统属性的集合(例如,类名、服务器和命名空间)。Gets the collection of WMI system properties of the management object (for example, the class name, server, and namespace). WMI 系统属性名以“”开头。WMI system property names begin with "".

方法

Clone() Clone() Clone() Clone()

返回对象的一个副本。Returns a copy of the object.

CompareTo(ManagementBaseObject, ComparisonSettings) CompareTo(ManagementBaseObject, ComparisonSettings) CompareTo(ManagementBaseObject, ComparisonSettings) CompareTo(ManagementBaseObject, ComparisonSettings)

根据指定的选项,将此对象与另一对象进行比较。Compares this object to another, based on specified options.

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

释放 ManagementBaseObject 使用的非托管资源。Releases the unmanaged resources used by the ManagementBaseObject.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

释放由 Component 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources used by the Component and optionally releases the managed resources.

(Inherited from Component)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

比较两个管理对象。Compares two management objects.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

用作特定类型的哈希函数,适合在哈希算法和数据结构(如哈希表)中使用。Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

检索控制此实例的生存期策略的当前生存期服务对象。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

用反序列化此实例所表示的字段所必需的数据填充 SerializationInfoPopulates a SerializationInfo with the data necessary to deserialize the field represented by this instance.

GetPropertyQualifierValue(String, String) GetPropertyQualifierValue(String, String) GetPropertyQualifierValue(String, String) GetPropertyQualifierValue(String, String)

返回指定的属性限定符的值。Returns the value of the specified property qualifier.

GetPropertyValue(String) GetPropertyValue(String) GetPropertyValue(String) GetPropertyValue(String)

获取某属性值的等效访问器。Gets an equivalent accessor to a property's value.

GetQualifierValue(String) GetQualifierValue(String) GetQualifierValue(String) GetQualifierValue(String)

获取指定的限定符的值。Gets the value of the specified qualifier.

GetService(Type) GetService(Type) GetService(Type) GetService(Type)

返回一个对象,该对象表示由 Component 或它的 Container 提供的服务。Returns an object that represents a service provided by the Component or by its Container.

(Inherited from Component)
GetText(TextFormat) GetText(TextFormat) GetText(TextFormat) GetText(TextFormat)

以指定的格式返回对象的文本化表示形式。Returns a textual representation of the object in the specified format.

GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

获取生存期服务对象来控制此实例的生存期策略。Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
SetPropertyQualifierValue(String, String, Object) SetPropertyQualifierValue(String, String, Object) SetPropertyQualifierValue(String, String, Object) SetPropertyQualifierValue(String, String, Object)

设置指定的属性限定符的值。Sets the value of the specified property qualifier.

SetPropertyValue(String, Object) SetPropertyValue(String, Object) SetPropertyValue(String, Object) SetPropertyValue(String, Object)

设置指定属性的值。Sets the value of the named property.

SetQualifierValue(String, Object) SetQualifierValue(String, Object) SetQualifierValue(String, Object) SetQualifierValue(String, Object)

设置指定的限定符的值。Sets the value of the named qualifier.

ToString() ToString() ToString() ToString()

返回包含 Component 的名称的 String(如果有)。Returns a String containing the name of the Component, if any. 不应重写此方法。This method should not be overridden.

(Inherited from Component)

操作员

Explicit(ManagementBaseObject to IntPtr) Explicit(ManagementBaseObject to IntPtr) Explicit(ManagementBaseObject to IntPtr) Explicit(ManagementBaseObject to IntPtr)

提供由 ManagementObject 表示的内部 WMI 对象。Provides the internal WMI object represented by a ManagementObject.

显式界面实现

ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext)

实现 ISerializable 接口,并返回序列化 ManagementBaseObject 所需的数据。Implements the ISerializable interface and returns the data needed to serialize the ManagementBaseObject.

事件

Disposed Disposed Disposed Disposed

当通过调用 Dispose() 方法释放组件时发生。Occurs when the component is disposed by a call to the Dispose() method.

(Inherited from Component)

适用于