WmiConfigurationAttribute(String) 构造函数
定义
初始化 WmiConfigurationAttribute 类的新实例,该类指定 WMI 提供程序用于公开类的 WMI 命名空间。Initializes a new instance of the WmiConfigurationAttribute class that specifies the WMI namespace in which the WMI provider will expose classes.
public:
WmiConfigurationAttribute(System::String ^ scope);
public WmiConfigurationAttribute (string scope);
new System.Management.Instrumentation.WmiConfigurationAttribute : string -> System.Management.Instrumentation.WmiConfigurationAttribute
Public Sub New (scope As String)
参数
- scope
- String
提供程序将用于公开类的 WMI 命名空间。The WMI namespace in which the provider will expose classes. 例如“root\MyProviderNamespace”。For example, "root\MyProviderNamespace".
注解
WMI 提供程序必须在命名空间中公开其类。A WMI provider must expose its classes in a namespace. 这就是构造函数需要将作用域作为参数的原因。That is why the constructor requires scope as a parameter.