ManagementClass 類別

定義

表示通用訊息模型 (CIM) 管理類別。Represents a Common Information Model (CIM) management class. 管理類別是指 WMI 類別,例如可以表示磁碟機的 Win32_LogicalDisk,以及可以表示 Notepad.exe 等處理序的 Win32_ProcessA management class is a WMI class such as Win32_LogicalDisk, which can represent a disk drive, and Win32_Process, which represents a process such as Notepad.exe. 此類別的成員可讓您存取使用特定 WMI 類別路徑的 WMI 資料。The members of this class enable you to access WMI data using a specific WMI class path.

public ref class ManagementClass : System::Management::ManagementObject
public class ManagementClass : System.Management.ManagementObject
[System.Serializable]
public class ManagementClass : System.Management.ManagementObject
type ManagementClass = class
    inherit ManagementObject
[<System.Serializable>]
type ManagementClass = class
    inherit ManagementObject
Public Class ManagementClass
Inherits ManagementObject
繼承
屬性

建構函式

ManagementClass()

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

ManagementClass(ManagementPath)

初始化 ManagementClass 類別的新執行個體。Initializes a new instance of the ManagementClass class. 此類別表示來自 WMI 的通用訊息模型 (CIM) 管理類別;例如,可以表示磁碟機的 Win32_LogicalDisk,以及可以表示 Notepad.exe 等處理序的 Win32_ProcessThe class represents a Common Information Model (CIM) management class from WMI such as Win32_LogicalDisk, which can represent a disk drive, and Win32_Process, which represents a process such as Notepad.exe.

ManagementClass(ManagementPath, ObjectGetOptions)

初始化 ManagementClass 類別的新執行個體,這個類別被用指定的選項初始化為 WMI 類別路徑。Initializes a new instance of the ManagementClass class initialized to the given WMI class path using the specified options. 此類別表示來自 WMI 的通用訊息模型 (CIM) 管理類別;例如,可以表示磁碟機的 Win32_LogicalDisk,以及可以表示 Notepad.exe 等處理序的 Win32_ProcessThe class represents a Common Information Model (CIM) management class from WMI such as Win32_LogicalDisk, which can represent a disk drive, and Win32_Process, which represents a process such as Notepad.exe.

ManagementClass(ManagementScope, ManagementPath, ObjectGetOptions)

在指定的範圍 (Scope),以指定的選項,為指定的 WMI 類別初始化 ManagementClass 類別的新執行個體。Initializes a new instance of the ManagementClass class for the specified WMI class in the specified scope and with the specified options. 此類別表示來自 WMI 的通用訊息模型 (CIM) 管理類別;例如,可以表示磁碟機的 Win32_LogicalDisk,以及可以表示 Notepad.exe 等處理序的 Win32_ProcessThe class represents a Common Information Model (CIM) management class from WMI such as Win32_LogicalDisk, which can represent a disk drive, and Win32_Process, which represents a process such as Notepad.exe.

ManagementClass(SerializationInfo, StreamingContext)

初始化 ManagementClass 類別的新執行個體,這個執行個體是來自 SerializationInfoStreamingContext 類別的指定執行個體。Initializes a new instance of the ManagementClass class from the specified instances of the SerializationInfo and StreamingContext classes.

ManagementClass(String)

初始化 ManagementClass 類別的新執行個體,該類別初始化為指定的路徑。Initializes a new instance of the ManagementClass class initialized to the given path. 此類別表示來自 WMI 的通用訊息模型 (CIM) 管理類別;例如,可以表示磁碟機的 Win32_LogicalDisk,以及可以表示 Notepad.exe 等處理序的 Win32_ProcessThe class represents a Common Information Model (CIM) management class from WMI such as Win32_LogicalDisk, which can represent a disk drive, and Win32_Process, which represents a process such as Notepad.exe.

ManagementClass(String, ObjectGetOptions)

初始化 ManagementClass 類別的新執行個體,這個類別被用指定的選項初始化為 WMI 類別路徑。Initializes a new instance of the ManagementClass class initialized to the given WMI class path using the specified options. 此類別表示來自 WMI 的通用訊息模型 (CIM) 管理類別;例如,可以表示磁碟機的 Win32_LogicalDisk,以及可以表示 Notepad.exe 等處理序的 Win32_ProcessThe class represents a Common Information Model (CIM) management class from WMI such as Win32_LogicalDisk, which can represent a disk drive, and Win32_Process, which represents a process such as Notepad.exe.

ManagementClass(String, String, ObjectGetOptions)

在指定的範圍,以指定的選項,為指定的 WMI 類別初始化 ManagementClass 類別的新執行個體。Initializes a new instance of the ManagementClass class for the specified WMI class, in the specified scope, and with the specified options. 此類別表示來自 WMI 的通用訊息模型 (CIM) 管理類別;例如,可以表示磁碟機的 Win32_LogicalDisk,以及可以表示 Notepad.exe 等處理序的 Win32_ProcessThe class represents a Common Information Model (CIM) management class from WMI such as Win32_LogicalDisk, which can represent a disk drive, and Win32_Process, which represents a process such as Notepad.exe.

屬性

CanRaiseEvents

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

(繼承來源 Component)
ClassPath

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

(繼承來源 ManagementObject)
Container

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

(繼承來源 Component)
Derivation

取得陣列,包含繼承階層架構 (Inheritance Hierarchy) 中從這個類別到階層架構最上層的所有 WMI 類別。Gets an array containing all WMI classes in the inheritance hierarchy from this class to the top of the hierarchy.

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

取得或設定 MethodData 物件的集合,這些物件表示 WMI 類別中定義的方法。Gets or sets a collection of MethodData objects that represent the methods defined in the WMI class.

Options

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

(繼承來源 ManagementObject)
Path

取得或設定 ManagementClass 物件所繫結之 WMI 類別的路徑。Gets or sets the path of the WMI class to which the ManagementClass object is bound.

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.

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

傳回物件的複本。Returns 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.

(繼承來源 ManagementObject)
CopyTo(ManagementOperationObserver, ManagementPath, PutOptions)

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

(繼承來源 ManagementObject)
CopyTo(ManagementOperationObserver, String)

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

(繼承來源 ManagementObject)
CopyTo(ManagementOperationObserver, String, PutOptions)

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

(繼承來源 ManagementObject)
CopyTo(ManagementPath)

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

(繼承來源 ManagementObject)
CopyTo(ManagementPath, PutOptions)

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

(繼承來源 ManagementObject)
CopyTo(String)

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

(繼承來源 ManagementObject)
CopyTo(String, PutOptions)

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

(繼承來源 ManagementObject)
CreateInstance()

初始化 WMI 類別的新執行個體。Initializes a new instance of the WMI class.

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.

(繼承來源 ManagementObject)
Delete(DeleteOptions)

刪除物件。Deletes the object.

(繼承來源 ManagementObject)
Delete(ManagementOperationObserver)

刪除物件。Deletes the object.

(繼承來源 ManagementObject)
Delete(ManagementOperationObserver, DeleteOptions)

刪除物件。Deletes the object.

(繼承來源 ManagementObject)
Derive(String)

從這個類別衍生新的類別。Derives a new class from this class.

Dispose()

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

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

(繼承來源 ManagementObject)
Get(ManagementOperationObserver)

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

(繼承來源 ManagementObject)
GetHashCode()

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

(繼承來源 ManagementBaseObject)
GetInstances()

傳回類別所有執行個體的集合。Returns the collection of all instances of the class.

GetInstances(EnumerationOptions)

使用指定的選項,傳回類別所有執行個體的集合。Returns the collection of all instances of the class using the specified options.

GetInstances(ManagementOperationObserver)

以非同步方式傳回類別所有執行個體的集合。Returns the collection of all instances of the class, asynchronously.

GetInstances(ManagementOperationObserver, EnumerationOptions)

使用指定的選項,以非同步方式傳回類別所有執行個體的集合。Returns the collection of all instances of the class, asynchronously, using the specified options.

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.

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

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

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

(繼承來源 ManagementObject)
GetRelated(ManagementOperationObserver, String)

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

(繼承來源 ManagementObject)
GetRelated(ManagementOperationObserver, String, String, String, String, String, String, Boolean, EnumerationOptions)

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

(繼承來源 ManagementObject)
GetRelated(String)

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

(繼承來源 ManagementObject)
GetRelated(String, String, String, String, String, String, Boolean, EnumerationOptions)

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

(繼承來源 ManagementObject)
GetRelatedClasses()

擷取與 WMI 類別相關的類別。Retrieves classes related to the WMI class.

GetRelatedClasses(ManagementOperationObserver)

以非同步方式擷取與 WMI 類別相關的類別。Retrieves classes related to the WMI class, asynchronously.

GetRelatedClasses(ManagementOperationObserver, String)

指定相關的類別名稱,以非同步方式擷取與 WMI 類別相關的類別。Retrieves classes related to the WMI class, asynchronously, given the related class name.

GetRelatedClasses(ManagementOperationObserver, String, String, String, String, String, String, EnumerationOptions)

使用指定的選項,以非同步方式擷取與 WMI 類別相關的類別。Retrieves classes related to the WMI class, asynchronously, using the specified options.

GetRelatedClasses(String)

擷取與 WMI 類別相關的類別。Retrieves classes related to the WMI class.

GetRelatedClasses(String, String, String, String, String, String, EnumerationOptions)

根據指定的選項,擷取與 WMI 類別相關的類別。Retrieves classes related to the WMI class based on the specified options.

GetRelationshipClasses()

擷取將類別和其他類別相關的關聯性類別。Retrieves relationship classes that relate the class to others.

GetRelationshipClasses(ManagementOperationObserver)

以非同步方式擷取將類別與其他類別相關的關聯性類別。Retrieves relationship classes that relate the class to others, asynchronously.

GetRelationshipClasses(ManagementOperationObserver, String)

以非同步方式擷取將類別與指定的 WMI 類別相關的關聯性類別。Retrieves relationship classes that relate the class to the specified WMI class, asynchronously.

GetRelationshipClasses(ManagementOperationObserver, String, String, String, EnumerationOptions)

擷取根據指定的選項以非同步方式關聯類別的關係類別。Retrieves relationship classes that relate the class according to the specified options, asynchronously.

GetRelationshipClasses(String)

擷取將類別與其他類別相關的關聯性類別,其中的端點類別是指定的類別。Retrieves relationship classes that relate the class to others, where the endpoint class is the specified class.

GetRelationshipClasses(String, String, String, EnumerationOptions)

根據指定的選項,擷取將這個類別與其他類別相關的關聯性類別。Retrieves relationship classes that relate this class to others, according to specified options.

GetRelationships()

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

(繼承來源 ManagementObject)
GetRelationships(ManagementOperationObserver)

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

(繼承來源 ManagementObject)
GetRelationships(ManagementOperationObserver, String)

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

(繼承來源 ManagementObject)
GetRelationships(ManagementOperationObserver, String, String, String, Boolean, EnumerationOptions)

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

(繼承來源 ManagementObject)
GetRelationships(String)

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

(繼承來源 ManagementObject)
GetRelationships(String, String, String, Boolean, EnumerationOptions)

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

(繼承來源 ManagementObject)
GetService(Type)

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

(繼承來源 Component)
GetStronglyTypedClassCode(Boolean, Boolean)

為指定的 WMI 類別產生強型別的類別。Generates a strongly-typed class for a given WMI class.

GetStronglyTypedClassCode(CodeLanguage, String, String)

為指定的 WMI 類別產生強型別的類別。Generates a strongly-typed class for a given WMI class. 這個函式會視輸入的參數而定,為 Visual Basic、C#、JScript、J# 或 C++ 產生程式碼。This function generates code for Visual Basic, C#, JScript, J#, or C++ depending on the input parameters.

GetSubclasses()

傳回類別所有子類別的集合。Returns the collection of all subclasses for the class.

GetSubclasses(EnumerationOptions)

使用指定的選項,擷取類別的子類別。Retrieves the subclasses of the class using the specified options.

GetSubclasses(ManagementOperationObserver)

以非同步方式傳回衍生自此類別之所有類別的集合。Returns the collection of all classes derived from this class, asynchronously.

GetSubclasses(ManagementOperationObserver, EnumerationOptions)

使用指定的選項,以非同步方式擷取衍生自此類別的所有類別。Retrieves all classes derived from this class, asynchronously, using the specified options.

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.

(繼承來源 ManagementObject)
InvokeMethod(ManagementOperationObserver, String, Object[])

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

(繼承來源 ManagementObject)
InvokeMethod(String, ManagementBaseObject, InvokeMethodOptions)

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

(繼承來源 ManagementObject)
InvokeMethod(String, Object[])

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

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

(繼承來源 ManagementObject)
Put(ManagementOperationObserver)

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

(繼承來源 ManagementObject)
Put(ManagementOperationObserver, PutOptions)

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

(繼承來源 ManagementObject)
Put(PutOptions)

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

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

(繼承來源 ManagementObject)

事件

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)

適用於