Share via


WmiConfigurationAttribute.NamespaceSecurity 属性

定义

获取或设置一个安全描述符定义语言 (SDDL) 字符串,它指定提供程序用于公开管理对象的命名空间的安全描述符。

public:
 property System::String ^ NamespaceSecurity { System::String ^ get(); void set(System::String ^ value); };
public string NamespaceSecurity { get; set; }
member this.NamespaceSecurity : string with get, set
Public Property NamespaceSecurity As String

属性值

一个 SDDL 字符串,表示提供程序用于公开管理对象的命名空间的安全描述符。

示例

以下示例演示如何使用 NamespaceSecurity 参数在根/SDTest 命名空间上设置安全描述符,提供程序在此程序集中实现的公开 WMI 类。

[assembly: WmiConfiguration("root/SDTest", HostingModel = ManagementHostingModel.Decoupled, IdentifyLevel = false, NamespaceSecurity = "O:BAG:BAD:(A;CI;0x60003;;;WD)")]

注解

有关如何以 SDDL 格式表示安全描述符的详细信息,请参阅 安全描述符字符串格式

适用于