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

取得包含 IContainerComponentGets 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 類別的索引子 (Indexer)。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)

建立包含所有相關資訊的物件,這些資訊是產生用來與遠端物件通訊的所需 Proxy。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 所使用的 Unmanaged 資源。Releases the unmanaged resources used by the ManagementBaseObject.

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

釋放 Component 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。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()

擷取控制這個執行個體存留期 (Lifetime) 原則的目前存留期服務物件。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 的淺層複本 (Shallow Copy)。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 名稱的 StringReturns 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)

適用於