ManagementObject 類別

定義

表示 WMI 執行個體。Represents a WMI instance.

public ref class ManagementObject : System::Management::ManagementBaseObject, ICloneable
public class ManagementObject : System.Management.ManagementBaseObject, ICloneable
[System.Serializable]
public class ManagementObject : System.Management.ManagementBaseObject, ICloneable
type ManagementObject = class
    inherit ManagementBaseObject
    interface ICloneable
[<System.Serializable>]
type ManagementObject = class
    inherit ManagementBaseObject
    interface ICloneable
Public Class ManagementObject
Inherits ManagementBaseObject
Implements ICloneable
繼承
衍生
屬性
實作

建構函式

ManagementObject()

初始化 ManagementObject 類別的新執行個體。Initializes a new instance of the ManagementObject class. 這是無參數建構函式。This is the parameterless constructor.

ManagementObject(ManagementPath)

初始化指定 WMI 物件路徑的 ManagementObject 類別的新執行個體。Initializes a new instance of the ManagementObject class for the specified WMI object path. 路徑會提供做為 ManagementPathThe path is provided as a ManagementPath.

ManagementObject(ManagementPath, ObjectGetOptions)

初始化繫結到指定的 WMI 路徑 (包括指定的其他選項) 之 ManagementObject 類別的新執行個體。Initializes a new instance of the ManagementObject class bound to the specified WMI path, including the specified additional options.

ManagementObject(ManagementScope, ManagementPath, ObjectGetOptions)

初始化繫結至指定的 WMI 路徑 (包括指定的選項) 之 ManagementObject 類別的新執行個體。Initializes a new instance of the ManagementObject class bound to the specified WMI path that includes the specified options.

ManagementObject(SerializationInfo, StreamingContext)

初始化可序列化之 ManagementObject 類別的新執行個體。Initializes a new instance of the ManagementObject class that is serializable.

ManagementObject(String)

初始化指定 WMI 物件路徑的 ManagementObject 類別的新執行個體。Initializes a new instance of the ManagementObject class for the specified WMI object path. 路徑會提供為字串。The path is provided as a string.

ManagementObject(String, ObjectGetOptions)

初始化繫結到指定的 WMI 路徑 (包括指定的其他選項) 之 ManagementObject 類別的新執行個體。Initializes a new instance of the ManagementObject class bound to the specified WMI path, including the specified additional options. 在這項變數中,路徑可以指定為字串。In this variant, the path can be specified as a string.

ManagementObject(String, String, ObjectGetOptions)

初始化繫結至指定的 WMI 路徑 (且包括指定的選項) 之 ManagementObject 類別的新執行個體。Initializes a new instance of the ManagementObject class bound to the specified WMI path, and includes the specified options. 範圍和路徑會指定為字串。The scope and the path are specified as strings.

屬性

CanRaiseEvents

取得值,指出元件是否能引發事件。Gets a value indicating whether the component can raise an event.

(繼承來源 Component)
ClassPath

取得或設定物件類別的路徑。Gets or sets the path to the object's class.

Container

取得包含 IContainerComponentGets the IContainer that contains the Component.

(繼承來源 Component)
DesignMode

取得值,指出 Component 目前是否處於設計模式。Gets a value that indicates whether the Component is currently in design mode.

(繼承來源 Component)
Events

取得附加在這個 Component 上的事件處理常式清單。Gets the list of event handlers that are attached to this Component.

(繼承來源 Component)
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.

(繼承來源 ManagementBaseObject)
Options

取得或設定擷取物件時要使用的其他資訊。Gets or sets additional information to use when retrieving the object.

Path

取得或設定物件的 WMI 路徑。Gets or sets the object's WMI path.

Properties

取得描述管理物件屬性的 PropertyData 物件集合。Gets a collection of PropertyData objects describing the properties of the management object.

(繼承來源 ManagementBaseObject)
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.

(繼承來源 ManagementBaseObject)
Scope

取得或設定這個物件所在處的範圍。Gets or sets the scope in which this object resides.

Site

取得或設定 ComponentISiteGets or sets the ISite of the Component.

(繼承來源 Component)
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 "".

(繼承來源 ManagementBaseObject)

方法

Clone()

建立物件的複本。Creates a copy of the object.

CompareTo(ManagementBaseObject, ComparisonSettings)

根據指定選項,將這個物件與另一個加以比較。Compares this object to another, based on specified options.

(繼承來源 ManagementBaseObject)
CopyTo(ManagementOperationObserver, ManagementPath)

將物件非同步地複製到不同的位置。Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, ManagementPath, PutOptions)

將物件非同步地複製到不同的位置。Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, String)

將物件非同步地複製到不同的位置。Copies the object to a different location, asynchronously.

CopyTo(ManagementOperationObserver, String, PutOptions)

將物件非同步地複製到不同的位置。Copies the object to a different location, asynchronously.

CopyTo(ManagementPath)

將物件複製到不同的位置。Copies the object to a different location.

CopyTo(ManagementPath, PutOptions)

將物件複製到不同的位置。Copies the object to a different location.

CopyTo(String)

將物件複製到不同的位置。Copies the object to a different location.

CopyTo(String, PutOptions)

將物件複製到不同的位置。Copies the object to a different location.

CreateObjRef(Type)

建立包含所有相關資訊的物件,這些資訊是產生用來與遠端物件通訊的所需 Proxy。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(繼承來源 MarshalByRefObject)
Delete()

刪除物件。Deletes the object.

Delete(DeleteOptions)

刪除物件。Deletes the object.

Delete(ManagementOperationObserver)

刪除物件。Deletes the object.

Delete(ManagementOperationObserver, DeleteOptions)

刪除物件。Deletes the object.

Dispose()

釋放元件使用的所有資源。Releases all resources used by the Component.

Dispose()

釋放 ManagementBaseObject 所使用的 Unmanaged 資源。Releases the unmanaged resources used by the ManagementBaseObject.

(繼承來源 ManagementBaseObject)
Dispose(Boolean)

釋放 Component 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources used by the Component and optionally releases the managed resources.

(繼承來源 Component)
Equals(Object)

比較兩個管理物件。Compares two management objects.

(繼承來源 ManagementBaseObject)
Get()

將 WMI 類別資訊繫結至管理物件。Binds WMI class information to the management object.

Get(ManagementOperationObserver)

非同步繫結至管理物件。Binds to the management object asynchronously.

GetHashCode()

做為特定類型的雜湊函數,適用於雜湊演算法和資料結構 (例如雜湊資料表)。Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

(繼承來源 ManagementBaseObject)
GetLifetimeService()
已過時。

擷取控制這個執行個體存留期 (Lifetime) 原則的目前存留期服務物件。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(繼承來源 MarshalByRefObject)
GetMethodParameters(String)

傳回 ManagementBaseObject,表示方法的輸入參數清單。Returns a ManagementBaseObject representing the list of input parameters for a method.

GetObjectData(SerializationInfo, StreamingContext)

使用還原序列化此執行個體所表示之欄位的所需資料,來填入 SerializationInfoPopulates a SerializationInfo with the data necessary to deserialize the field represented by this instance.

GetObjectData(SerializationInfo, StreamingContext)

使用還原序列化此執行個體所表示之欄位的所需資料,來填入 SerializationInfoPopulates a SerializationInfo with the data necessary to deserialize the field represented by this instance.

(繼承來源 ManagementBaseObject)
GetPropertyQualifierValue(String, String)

傳回指定屬性限定詞的值。Returns the value of the specified property qualifier.

(繼承來源 ManagementBaseObject)
GetPropertyValue(String)

取得屬性值的對等存取子。Gets an equivalent accessor to a property's value.

(繼承來源 ManagementBaseObject)
GetQualifierValue(String)

取得指定限定詞的值。Gets the value of the specified qualifier.

(繼承來源 ManagementBaseObject)
GetRelated()

取得與物件 (相關者) 相關的物件集合。Gets a collection of objects related to the object (associators).

GetRelated(ManagementOperationObserver)

非同步取得與物件 (相關者) 相關的物件集合。Gets a collection of objects related to the object (associators) asynchronously. 這個呼叫會立即傳回,當結果可以使用時,會呼叫委派。This call returns immediately, and a delegate is called when the results are available.

GetRelated(ManagementOperationObserver, String)

取得與物件 (相關者) 相關的物件集合。Gets a collection of objects related to the object (associators).

GetRelated(ManagementOperationObserver, String, String, String, String, String, String, Boolean, EnumerationOptions)

取得與物件 (相關者) 相關的物件集合。Gets a collection of objects related to the object (associators).

GetRelated(String)

取得與物件 (相關者) 相關的物件集合。Gets a collection of objects related to the object (associators).

GetRelated(String, String, String, String, String, String, Boolean, EnumerationOptions)

取得與物件 (相關者) 相關的物件集合。Gets a collection of objects related to the object (associators).

GetRelationships()

取得物件的關聯性的集合。Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver)

取得物件的關聯性的集合。Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver, String)

取得物件的關聯性的集合。Gets a collection of associations to the object.

GetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions)

取得物件的關聯性的集合。Gets a collection of associations to the object.

GetRelationships(String)

取得物件的關聯性的集合。Gets a collection of associations to the object.

GetRelationships(String, String, String, Boolean, EnumerationOptions)

取得物件的關聯性的集合。Gets a collection of associations to the object.

GetService(Type)

傳回表示 Component 或其 Container 所提供之服務的物件。Returns an object that represents a service provided by the Component or by its Container.

(繼承來源 Component)
GetText(TextFormat)

以指定格式傳回物件的文字表示。Returns a textual representation of the object in the specified format.

(繼承來源 ManagementBaseObject)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
InitializeLifetimeService()
已過時。

取得存留期服務物件,以控制這個執行個體的存留期原則。Obtains a lifetime service object to control the lifetime policy for this instance.

(繼承來源 MarshalByRefObject)
InvokeMethod(ManagementOperationObserver, String, ManagementBaseObject, InvokeMethodOptions)

以非同步方式,在物件上叫用方法。Invokes a method on the object, asynchronously.

InvokeMethod(ManagementOperationObserver, String, Object[])

以非同步方式,在物件上叫用方法。Invokes a method on the object, asynchronously.

InvokeMethod(String, ManagementBaseObject, InvokeMethodOptions)

在 WMI 物件上叫用方法。Invokes a method on the WMI object. 輸入和輸出參數會表示做為 ManagementBaseObject 物件。The input and output parameters are represented as ManagementBaseObject objects.

InvokeMethod(String, Object[])

在物件上叫用方法。Invokes a method on the object.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
MemberwiseClone(Boolean)

建立目前 MarshalByRefObject 物件的淺層複本。Creates a shallow copy of the current MarshalByRefObject object.

(繼承來源 MarshalByRefObject)
Put()

認可對物件的變更。Commits the changes to the object.

Put(ManagementOperationObserver)

以非同步的方式,認可對物件的變更。Commits the changes to the object, asynchronously.

Put(ManagementOperationObserver, PutOptions)

以非同步的方式,認可對物件的變更,並採用指定的選項。Commits the changes to the object asynchronously and using the specified options.

Put(PutOptions)

認可對物件的變更。Commits the changes to the object.

SetPropertyQualifierValue(String, String, Object)

設定指定屬性限定詞的值。Sets the value of the specified property qualifier.

(繼承來源 ManagementBaseObject)
SetPropertyValue(String, Object)

設定具名屬性的值。Sets the value of the named property.

(繼承來源 ManagementBaseObject)
SetQualifierValue(String, Object)

設定具名限定詞的值。Sets the value of the named qualifier.

(繼承來源 ManagementBaseObject)
ToString()

傳回物件的完整路徑。Returns the full path of the object. 這樣會覆寫預設的物件實作。This is an override of the default object implementation.

事件

Disposed

Dispose() 方法的呼叫處置元件時,就會發生。Occurs when the component is disposed by a call to the Dispose() method.

(繼承來源 Component)

明確介面實作

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

實作 ISerializable 介面,並傳回序列化 ManagementBaseObject 所需的資料。Implements the ISerializable interface and returns the data needed to serialize the ManagementBaseObject.

(繼承來源 ManagementBaseObject)

適用於