using System; using System.Collections.Generic; namespace System.Security.AccessControl { /// Represents an Access Control List (ACL). // Token: 0x020004D8 RID: 1240 public sealed class RawAcl : GenericAcl { /// Initializes a new instance of the class with the specified revision level. /// The revision level of the new Access Control List (ACL). /// The number of Access Control Entries (ACEs) this object can contain. This number is to be used only as a hint. // Token: 0x06002E05 RID: 11781 RVA: 0x0009416C File Offset: 0x0009236C public RawAcl(byte revision, int capacity) { this.revision = revision; this.list = new List(capacity); } /// Initializes a new instance of the class from the specified binary form. /// An array of byte values that represent an Access Control List (ACL). /// The offset in the parameter at which to begin unmarshaling data. // Token: 0x06002E06 RID: 11782 RVA: 0x00094188 File Offset: 0x00092388 public RawAcl(byte[] binaryForm, int offset) : this(0, 10) { } /// Gets the length, in bytes, of the binary representation of the current object. This length should be used before marshaling the ACL into a binary array with the method. /// The length, in bytes, of the binary representation of the current object. // Token: 0x17000918 RID: 2328 // (get) Token: 0x06002E07 RID: 11783 RVA: 0x00094194 File Offset: 0x00092394 [MonoTODO] public 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: 0x17000919 RID: 2329 // (get) Token: 0x06002E08 RID: 11784 RVA: 0x0009419C File Offset: 0x0009239C public override int Count { get { return this.list.Count; } } /// Gets or sets the Access Control Entry (ACE) at the specified index. /// The ACE at the specified index. /// The zero-based index of the ACE to get or set. // Token: 0x1700091A RID: 2330 public 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: 0x1700091B RID: 2331 // (get) Token: 0x06002E0B RID: 11787 RVA: 0x000941CC File Offset: 0x000923CC public 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. /// /// is negative or too high to allow the entire to be copied into . // Token: 0x06002E0C RID: 11788 RVA: 0x000941D4 File Offset: 0x000923D4 [MonoTODO] public override void GetBinaryForm(byte[] binaryForm, int offset) { throw new NotImplementedException(); } /// Inserts the specified Access Control Entry (ACE) at the specified index. /// The position at which to add the new ACE. Specify the value of the property to insert an ACE at the end of the object. /// The ACE to insert. /// /// is negative or too high to allow the entire to be copied into . // Token: 0x06002E0D RID: 11789 RVA: 0x000941DC File Offset: 0x000923DC public void InsertAce(int index, GenericAce ace) { if (ace == null) { throw new ArgumentNullException("ace"); } this.list.Insert(index, ace); } /// Removes the Access Control Entry (ACE) at the specified location. /// The zero-based index of the ACE to remove. /// The value of the parameter is higher than the value of the property minus one or is negative. // Token: 0x06002E0E RID: 11790 RVA: 0x00094210 File Offset: 0x00092410 public void RemoveAce(int index) { this.list.RemoveAt(index); } // Token: 0x04001227 RID: 4647 private byte revision; // Token: 0x04001228 RID: 4648 private List list; } }