<PackageReference Include="System.Security.AccessControl" Version="4.7.0-preview2.19523.17" />

GenericAcl

public abstract class GenericAcl : ICollection, IEnumerable
Represents an access control list (ACL) and is the base class for the CommonAcl, DiscretionaryAcl, RawAcl, and SystemAcl classes.
public static readonly byte AclRevision

The revision level of the current GenericAcl. This value is returned by the Revision property for Access Control Lists (ACLs) that are not associated with Directory Services objects.

public static readonly byte AclRevisionDS

The revision level of the current GenericAcl. This value is returned by the Revision property for Access Control Lists (ACLs) that are associated with Directory Services objects.

public static readonly int MaxBinaryLength

The maximum allowed binary length of a GenericAcl object.

public abstract int BinaryLength { get; }

Gets the length, in bytes, of the binary representation of the current GenericAcl object. This length should be used before marshaling the ACL into a binary array with the GetBinaryForm method.

public abstract int Count { get; }

Gets the number of access control entries (ACEs) in the current GenericAcl object.

public bool IsSynchronized { get; }

This property is always set to false. It is implemented only because it is required for the implementation of the ICollection interface.

public abstract GenericAce this[int index] { get; set; }

Gets or sets the GenericAce at the specified index.

public abstract byte Revision { get; }

Gets the revision level of the GenericAcl.

public virtual object SyncRoot { get; }

This property always returns null. It is implemented only because it is required for the implementation of the ICollection interface.

protected GenericAcl()

Initializes a new instance of the GenericAcl class.

public void CopyTo(GenericAce[] array, int index)

Copies each GenericAce of the current GenericAcl into the specified array.

public abstract void GetBinaryForm(byte[] binaryForm, int offset)

Marshals the contents of the GenericAcl object into the specified byte array beginning at the specified offset.

Retrieves an object that you can use to iterate through the access control entries (ACEs) in an access control list (ACL).