using System; using System.Collections.Generic; using System.Security.Principal; namespace System.Security.AccessControl { /// Represents an access control list (ACL) and is the base class for the and classes. // Token: 0x020004AF RID: 1199 public abstract class CommonAcl : GenericAcl { // Token: 0x06002CBF RID: 11455 RVA: 0x00092FF4 File Offset: 0x000911F4 internal CommonAcl(bool isContainer, bool isDS, byte revision) : this(isContainer, isDS, revision, 10) { } // Token: 0x06002CC0 RID: 11456 RVA: 0x00093004 File Offset: 0x00091204 internal CommonAcl(bool isContainer, bool isDS, byte revision, int capacity) { this.is_container = isContainer; this.is_ds = isDS; this.revision = revision; this.list = new List(capacity); } /// Gets the length, in bytes, of the binary representation of the current object. This length should be used before marshaling the access control list (ACL) into a binary array by using the method. /// The length, in bytes, of the binary representation of the current object. // Token: 0x170008C1 RID: 2241 // (get) Token: 0x06002CC1 RID: 11457 RVA: 0x0009303C File Offset: 0x0009123C [MonoTODO] public sealed override int BinaryLength { get { throw new NotImplementedException(); } } /// Gets the number of access control entries (ACEs) in the current object. /// The number of ACEs in the current object. // Token: 0x170008C2 RID: 2242 // (get) Token: 0x06002CC2 RID: 11458 RVA: 0x00093044 File Offset: 0x00091244 public sealed override int Count { get { return this.list.Count; } } /// Gets a Boolean value that specifies whether the access control entries (ACEs) in the current object are in canonical order. /// true if the ACEs in the current object are in canonical order; otherwise, false. // Token: 0x170008C3 RID: 2243 // (get) Token: 0x06002CC3 RID: 11459 RVA: 0x00093054 File Offset: 0x00091254 [MonoTODO] public bool IsCanonical { get { throw new NotImplementedException(); } } /// Sets whether the object is a container. /// true if the current object is a container. // Token: 0x170008C4 RID: 2244 // (get) Token: 0x06002CC4 RID: 11460 RVA: 0x0009305C File Offset: 0x0009125C public bool IsContainer { get { return this.is_container; } } /// Sets whether the current object is a directory object access control list (ACL). /// true if the current object is a directory object ACL. // Token: 0x170008C5 RID: 2245 // (get) Token: 0x06002CC5 RID: 11461 RVA: 0x00093064 File Offset: 0x00091264 public bool IsDS { get { return this.is_ds; } } /// Gets or sets the at the specified index. /// The at the specified index. /// The zero-based index of the to get or set. // Token: 0x170008C6 RID: 2246 public sealed override GenericAce this[int index] { get { return this.list[index]; } set { this.list[index] = value; } } /// Gets the revision level of the . /// A byte value that specifies the revision level of the . // Token: 0x170008C7 RID: 2247 // (get) Token: 0x06002CC8 RID: 11464 RVA: 0x0009308C File Offset: 0x0009128C public sealed override byte Revision { get { return this.revision; } } /// Marshals the contents of the object into the specified byte array beginning at the specified offset. /// The byte array into which the contents of the is marshaled. /// The offset at which to start marshaling. // Token: 0x06002CC9 RID: 11465 RVA: 0x00093094 File Offset: 0x00091294 [MonoTODO] public sealed override void GetBinaryForm(byte[] binaryForm, int offset) { throw new NotImplementedException(); } /// Removes all access control entries (ACEs) contained by this object that are associated with the specified object. /// The object to check for. // Token: 0x06002CCA RID: 11466 RVA: 0x0009309C File Offset: 0x0009129C [MonoTODO] public void Purge(SecurityIdentifier sid) { throw new NotImplementedException(); } /// Removes all inherited access control entries (ACEs) from this object. // Token: 0x06002CCB RID: 11467 RVA: 0x000930A4 File Offset: 0x000912A4 [MonoTODO] public void RemoveInheritedAces() { throw new NotImplementedException(); } // Token: 0x0400119C RID: 4508 private const int default_capacity = 10; // Token: 0x0400119D RID: 4509 private bool is_container; // Token: 0x0400119E RID: 4510 private bool is_ds; // Token: 0x0400119F RID: 4511 private byte revision; // Token: 0x040011A0 RID: 4512 private List list; } }