System.Management.Instrumentation 命名空間

提供必要的類別,用來檢測管理應用程式,並透過 WMI 將其管理資訊和事件公開給可能的客戶。 Provides the classes necessary for instrumenting applications for management and exposing their management information and events through WMI to potential consumers. 接著,Microsoft Application Center 或 Microsoft Operations Manager 等客戶便可輕鬆地管理您的應用程式,並可監視和設定供系統管理員指令碼或其他應用程式使用的應用程式,包括 Managed 和 Unmanaged 兩種。 Consumers such as Microsoft Application Center or Microsoft Operations Manager can then manage your application easily, and monitoring and configuring of your application is available for administrator scripts or other applications, both managed as well as unmanaged. 在希望公開的類別上使用 InstrumentationClass 自訂屬性,或使用提供的 BaseEventInstance 基底類別和 Instrumentation Helper 類別,您就可以輕鬆完成應用程式的檢測。 Instrumentation of your application is easy to achieve using the InstrumentationClass custom attribute on classes you wish to expose, or using the provided BaseEvent and Instance base classes and the Instrumentation helper class.

類別

BaseEvent

代表衍生自 BaseEvent 的類別,這些類別已知為管理事件類別。Represents classes derived from BaseEvent that are known to be management event classes. 這些衍生的類別會繼承 IEvent 的實作,可讓事件透過 Fire() 方法來引發。These derived classes inherit an implementation of IEvent that allows events to be fired through the Fire() method.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

DefaultManagementInstaller

安裝已檢測的組件。Installs an instrumented assembly. 若要使用此預設專案安裝程式,只需在組件內部從 DefaultManagementInstaller 衍生類別。To use this default project installer, simply derive a class from DefaultManagementInstaller inside the assembly. 不需要覆寫任何方法。No methods need to be overridden.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

DefaultManagementProjectInstaller

安裝已檢測的組件。Installs an instrumented assembly. 若要使用此預設專案安裝程式,請在組件內部從 DefaultManagementProjectInstaller 衍生類別。To use this default project installer, derive a class from DefaultManagementProjectInstaller inside the assembly. 不需要覆寫任何方法。No methods need to be overridden.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

IgnoreMemberAttribute

會導致管理檢測忽略已檢測類別相關的成員。Causes the associated member of an instrumented class to be ignored by management instrumentation.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

Instance

代表已知為管理檢測執行個體類別的衍生類別。Represents derived classes known to be management instrumentation instance classes. 這些衍生的類別繼承 IInstance 的實作,可讓執行個體透過 Published 屬性發行。These derived classes inherit an implementation of IInstance that allows instances to be published through the Published property.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

InstanceNotFoundException

擲回的例外狀況指出提供者沒有傳回任何執行個體。The exception thrown to indicate that no instances are returned by a provider.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

Instrumentation

針對管理提供公開事件和資料的 Helper 函式。Provides helper functions for exposing events and data for management. 每個應用程式網域各有此類別的單一介面。There is a single instance of this class per application domain.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

InstrumentationBaseException

表示基底提供者相關的例外狀況。Represents the base provider-related exception.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

InstrumentationClassAttribute

指定提供事件或執行個體檢測的類別。Specifies that a class provides event or instance instrumentation.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

InstrumentationException

表示提供者相關的例外狀況。Represents a provider-related exception.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

InstrumentationManager

提供可管理存留期與針對低耦合提供者所使用之模型的方法。Provides methods that manage the lifetime and the model used for decoupled providers.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

InstrumentedAttribute

指定這個組件提供管理檢測。Specifies that this assembly provides management instrumentation. 此屬性應該每個組件出現一次。This attribute should appear one time per assembly.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagedCommonProvider

這個類別是由 WMI .NET 提供者延伸模組基礎結構在內部使用。The class is used internally by the WMI.NET Provider Extensions infrastructure.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagedNameAttribute

可讓檢測類別,或檢測類別的成員,透過管理檢測設備呈現替代名稱。Allows an instrumented class, or member of an instrumented class, to present an alternate name through management instrumentation.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementBindAttribute

ManagementBind 屬性指出,方法是用來傳回與特定索引鍵值相關聯之 WMI 類別的執行個體。The ManagementBind attribute indicates that a method is used to return the instance of a WMI class associated with a specific key value.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementCommitAttribute

ManagementCommit 屬性會標記一個方法,該方法會在必須於一個不可部分完成的作業中更新一組讀寫屬性時呼叫。The ManagementCommit attribute marks a method that is called when it is necessary to update a set of read-write properties in one, atomic operation.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementConfigurationAttribute

ManagementConfiguration 屬性指出屬性或欄位代表讀/寫 WMI 屬性。The ManagementConfiguration attribute indicates that a property or field represents a read-write WMI property.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementCreateAttribute

ManagementCreateAttribute 用於指出方法會建立受管理實體的新執行個體。The ManagementCreateAttribute is used to indicate that a method creates a new instance of a managed entity.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementEntityAttribute

ManagementEntity 屬性指出類別會提供透過 WMI 提供者公開的管理資訊。The ManagementEntity attribute indicates that a class provides management information exposed through a WMI provider.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementEnumeratorAttribute

ManagementEnumerator 屬性會標記傳回 WMI 類別的所有執行個體的方法。The ManagementEnumerator attribute marks a method that returns all the instances of a WMI class.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementInstaller

安裝副稽核組件。Installs instrumented assemblies. 將此安裝程式類別的執行個體包含在包含檢測設備的組件專案安裝程式中。Include an instance of this installer class in the project installer for an assembly that includes instrumentation.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementKeyAttribute

ManagementKey 屬性可識別 WMI 類別的主要屬性。The ManagementKey attribute identifies the key properties of a WMI class.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementMemberAttribute

此類別是由 WMI.NET Provider Extensions 架構使用。This class is used by the WMI.NET Provider Extensions framework. 它是所有可套用到成員之管理屬性的基礎類別。It is the base class for all the management attributes that can be applied to members.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementNameAttribute

ManagementName 屬性用來覆寫透過 WMI 類別公開的名稱。The ManagementName attribute is used to override names exposed through a WMI class.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementNewInstanceAttribute

只具備執行階段功能,沒有結構描述表示法的管理屬性的基底類別。The base class for management attributes that have only run-time functionality and no schema representation. 管理屬性類別 ManagementBindAttribute、ManagementCreateAttribute 和 ManagementEnumeratorAttribute 全部衍生自這個類別。The management attribute classes ManagementBindAttribute, ManagementCreateAttribute and ManagementEnumeratorAttribute are all derived from this class.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementProbeAttribute

ManagementProbe 屬性指出屬性或欄位代表唯讀 WMI 屬性。The ManagementProbe attribute indicates that a property or field represents a read-only WMI property.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementQualifierAttribute

ManagementQualifier 屬性包含與 WMI 類別、執行個體、屬性、欄位或方法相關聯的其他 WMI 提供者相關資訊。The ManagementQualifier attribute contains additional WMI provider-related information about an associated WMI class, instance, property, field or method.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementReferenceAttribute

ManagementReferenceAttribute 會將類別成員、屬性或方法參數標示為另一管理物件或類別的參考。The ManagementReferenceAttribute marks a class member, property or method parameter as a reference to another management object or class.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementRemoveAttribute

ManagementRemoveAttribute 用於指出方法清除受管理實體的執行個體。The ManagementRemoveAttribute is used to indicate that a method cleans up an instance of a managed entity.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementTaskAttribute

ManagementTask 屬性指出目標方法會實作 WMI 方法。The ManagementTask attribute indicates that the target method implements a WMI method.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

WmiConfigurationAttribute

WmiConfiguration 屬性指出某個組件包含使用 WMI.NET 提供者延伸模組模型實作 WMI 提供者的程式碼。The WmiConfiguration attribute indicates that an assembly contains code that implements a WMI provider by using the WMI.NET Provider Extensions model. 屬性,接受建立實作的 WMI 提供者之高層級組態的參數。The attribute accepts parameters that establish the high-level configuration of the implemented WMI provider.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

WmiProviderInstallationException

代表 WMI 提供者安裝失敗時擲回的例外狀況。Represents an exception to throw when WMI provider installation fails.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

介面

IEvent

指定管理檢測事件的來源。Specifies a source of a management instrumentation event. 實作這個介面的物件已知為管理檢測事件的來源。Objects that implement this interface are known to be sources of management instrumentation events. 非衍生自 BaseEvent 的類別應改為實作這個介面。Classes that do not derive from BaseEvent should implement this interface instead.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

IInstance

指定管理檢測執行個體的來源。Specifies a source of a management instrumentation instance. 實作這個介面的物件已知為管理檢測執行個體的來源。Objects that implement this interface are known to be sources of management instrumentation instances. 非衍生自 Instance 的類別應改為實作這個介面。Classes that do not derive from Instance should implement this interface instead.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

列舉

InstrumentationType

指定類別提供的檢測型別。Specifies the type of instrumentation provided by a class.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementConfigurationType

表示讀取/寫入屬性可能的認可行為。 它會當作 ManagementConfigurationAttribute 屬性的參數值。It is used as the value of a parameter of the ManagementConfigurationAttribute attribute.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementHostingModel

定義可指定提供者的主控模型的值。Defines values that specify the hosting model for the provider.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.

ManagementQualifierFlavors

可搭配 WMI 提供者延伸模組使用的限定詞標註。Qualifier flavors that can be used with WMI provider extensions.

注意:WMI .NET 程式庫目前被視為最終狀態,針對影響這些程式庫的非安全性相關問題,不會提供進一步的開發、增強功能或更新。Note: the WMI .NET libraries are now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. MI API 應使用於所有新的開發。The MI APIs should be used for all new development.