DirectorySearcher.SecurityMasks Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating which security access information for the specified attributes should be returned by the search.
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
Property Value
One of the SecurityMasks values.
- Attributes
Examples
using System.DirectoryServices;
...
DirectorySearcher src = new DirectorySearcher("…");
src.PropertiesToLoad = new string[] {ntSecurityDescriptor,…};
src.SecurityMasks = SecurityMasks.Dacl | SecurityMasks.Owner;
SearchResultCollection res = src.FindAll();
Applies to
See also
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET