英語で読む

次の方法で共有


SecurityMasks 列挙型

定義

ディレクトリ オブジェクトのセキュリティ情報を調べるために使用できるオプションを指定します。 この列挙体は、SecurityMasks プロパティおよび SecurityMasks プロパティで使用されます。

この列挙体は、メンバー値のビットごとの組み合わせをサポートしています。

C#
[System.Flags]
public enum SecurityMasks
継承
SecurityMasks
属性

フィールド

名前 説明
Dacl 4

随意アクセス制御リスト (DACL: Discretionary Access Control List) のデータを読み書きします。

Group 2

グループ データを読み書きします。

None 0

セキュリティ データの読み書きは行いません。

Owner 1

所有者のデータを読み書きします。

Sacl 8

システム アクセス制御リスト (SACL: System Access Control List) のデータを読み書きします。

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

適用対象

製品 バージョン
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9