DirectorySearcher.SecurityMasks 属性

定义

获取或设置指示搜索应为指定特性返回哪些安全访问信息的值。

public:
 property System::DirectoryServices::SecurityMasks SecurityMasks { System::DirectoryServices::SecurityMasks get(); void set(System::DirectoryServices::SecurityMasks value); };
public System.DirectoryServices.SecurityMasks SecurityMasks { get; set; }
[System.DirectoryServices.DSDescription("DSSecurityMasks")]
[System.Runtime.InteropServices.ComVisible(false)]
public System.DirectoryServices.SecurityMasks SecurityMasks { get; set; }
member this.SecurityMasks : System.DirectoryServices.SecurityMasks with get, set
[<System.DirectoryServices.DSDescription("DSSecurityMasks")>]
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.SecurityMasks : System.DirectoryServices.SecurityMasks with get, set
Public Property SecurityMasks As SecurityMasks

属性值

SecurityMasks 值之一。

属性

示例

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

适用于

另请参阅