Export (0) Print
Expand All

DirectorySearcher.SecurityMasks Property

Gets or sets a value indicating which security access information for the specified attributes should be returned by the search.

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

[DSDescriptionAttribute("DSSecurityMasks")]
[ComVisibleAttribute(false)]
public SecurityMasks SecurityMasks { get; set; }

Property Value

Type: System.DirectoryServices.SecurityMasks
One of the SecurityMasks values.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft