SecurityMasks 列挙型
定義
ディレクトリ オブジェクトのセキュリティ情報を調べるために使用できるオプションを指定します。Specifies the available options for examining security information of a directory object. この列挙体は、SecurityMasks プロパティおよび SecurityMasks プロパティで使用されます。This enumeration is used with the SecurityMasks and SecurityMasks properties.
この列挙型には FlagsAttribute 属性があり、メンバー値ではビットごとの組み合わせを使用できます。
public enum class SecurityMasks
[System.Flags]
public enum SecurityMasks
type SecurityMasks =
Public Enum SecurityMasks
- 継承
- 属性
フィールド
Dacl | 4 | 随意アクセス制御リスト (DACL: Discretionary Access Control List) のデータを読み書きします。Reads or writes the discretionary access-control list (DACL) data. |
Group | 2 | グループ データを読み書きします。Reads or writes the group data. |
None | 0 | セキュリティ データの読み書きは行いません。Does not read or write security data. |
Owner | 1 | 所有者のデータを読み書きします。Reads or writes the owner data. |
Sacl | 8 | システム アクセス制御リスト (SACL: System Access Control List) のデータを読み書きします。Reads or writes the system access-control list (SACL) data. |
例
using System.DirectoryServices;
...
DirectorySearcher src = new DirectorySearcher("…");
src.PropertiesToLoad = new string[] {ntSecurityDescriptor,…};
src.SecurityMasks = SecurityMasks.Dacl | SecurityMasks.Owner;
SearchResultCollection res = src.FindAll();