SecurityMasks Enumeration

SecurityMasks Enumeration

 

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.

Namespace:   System.DirectoryServices
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

[<FlagsAttribute>]
type SecurityMasks

Member nameDescription
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
Return to top
Show:
© 2016 Microsoft