SecurityMasks 枚举

定义

指定检查目录对象的安全信息时的可用选项。Specifies the available options for examining security information of a directory object. 此枚举与 SecurityMasksSecurityMasks 属性一起使用。This enumeration is used with the SecurityMasks and SecurityMasks properties.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class SecurityMasks
[System.Flags]
public enum SecurityMasks
type SecurityMasks = 
Public Enum SecurityMasks
继承
SecurityMasks
属性

字段

Dacl 4

读取或写入任意访问控制列表 (DACL) 数据。Reads or writes the discretionary access-control list (DACL) data.

Group 2

读取或写入组数据。Reads or writes the group data.

None 0

不读取或写入安全数据。Does not read or write security data.

Owner 1

读取或写入所有者数据。Reads or writes the owner data.

Sacl 8

读取或写入系统访问控制列表 (SACL) 数据。Reads or writes the system access-control list (SACL) data.

示例

using System.DirectoryServices;  
...  
DirectorySearcher src = new DirectorySearcher("…");  
src.PropertiesToLoad = new string[] {ntSecurityDescriptor,…};  
src.SecurityMasks = SecurityMasks.Dacl | SecurityMasks.Owner;  
SearchResultCollection res = src.FindAll();  
  

适用于