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
Available since 2.0
Return to top
Show: