mscorlib(4.0.0.0) API with additions
KnownAce.cs
2 
4 {
6  public abstract class KnownAce : GenericAce
7  {
8  private int _accessMask;
9 
10  private SecurityIdentifier _sid;
11 
12  internal const int AccessMaskLength = 4;
13 
16  public int AccessMask
17  {
18  get
19  {
20  return _accessMask;
21  }
22  set
23  {
24  _accessMask = value;
25  }
26  }
27 
31  {
32  get
33  {
34  return _sid;
35  }
36  set
37  {
38  if (value == null)
39  {
40  throw new ArgumentNullException("value");
41  }
42  _sid = value;
43  }
44  }
45 
46  internal KnownAce(AceType type, AceFlags flags, int accessMask, SecurityIdentifier securityIdentifier)
47  : base(type, flags)
48  {
49  if (securityIdentifier == null)
50  {
51  throw new ArgumentNullException("securityIdentifier");
52  }
53  AccessMask = accessMask;
54  SecurityIdentifier = securityIdentifier;
55  }
56  }
57 }
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
Definition: __Canon.cs:3
AceType
Defines the available access control entry (ACE) types.
Definition: AceType.cs:4
Represents an Access Control Entry (ACE), and is the base class for all other ACE classes.
Definition: GenericAce.cs:6
AceFlags
Specifies the inheritance and auditing behavior of an access control entry (ACE).
Definition: AceFlags.cs:5
Encapsulates all Access Control Entry (ACE) types currently defined by Microsoft Corporation....
Definition: KnownAce.cs:6
Represents a security identifier (SID) and provides marshaling and comparison operations for SIDs.
int AccessMask
Gets or sets the access mask for this T:System.Security.AccessControl.KnownAce object.
Definition: KnownAce.cs:17