SecurityMasks Enumeration
.NET Framework (current version)
Specifies the available options for examining security information of a directory object. This enumeration is used with the DirectorySearcher.SecurityMasks and DirectoryEntryConfiguration.SecurityMasks properties.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
| Member name | Description | |
|---|---|---|
| Dacl | Reads or writes the discretionary access-control list (DACL) data. | |
| Group | Reads or writes the group data. | |
| None | Does not read or write security data. | |
| Owner | Reads or writes the owner data. | |
| 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();
.NET Framework
Available since 2.0
Available since 2.0
Show: