WmiConfigurationAttribute.Scope 屬性

定義

取得 WMI 提供者公開類別的 WMI 命名空間。

public:
 property System::String ^ Scope { System::String ^ get(); };
public string Scope { get; }
member this.Scope : string
Public ReadOnly Property Scope As String

屬性值

String 值,表示 WMI 提供者在其中公開類別的命名空間。

備註

WMI 命名空間是 WMI 存放庫中的類別。 常用的 root/cimv2 命名空間會裝載描述電腦管理工作組 (DMTF) 聯盟所定義之 Common Information Model 第 2 版的類別。 只有在擴充標準 CIM 模型時,才應該在該命名空間中公開您的提供者。 否則,您應該建立適當的命名空間,讓使用者清楚知道他們預期可在命名空間中找到的 WMI 類別類型。

適用於