WmiConfigurationAttribute.NamespaceSecurity 屬性

定義

取得或設定 Security Descriptor Definition Language (SDDL) 字串,指定命名空間上的安全性描述元 (Security Descriptor),提供者在此命名空間中公開管理物件。

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 字串,表示命名空間上的安全性描述元 (Security Descriptor),提供者會在此命名空間中公開管理物件。

範例

下列範例示範如何使用 NamespaceSecurity 參數,在提供者在此元件中實作的根/SDTest 命名空間上設定安全性描述符,以公開 WMI 類別。

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

備註

如需如何以 SDDL 格式表示安全性描述元的詳細資訊,請參閱 安全性描述元字串格式

適用於