<PackageReference Include="System.Security.AccessControl" Version="4.7.0-preview1.19504.10" />

AceEnumerator

public sealed class AceEnumerator : IEnumerator
Provides the ability to iterate through the access control entries (ACEs) in an access control list (ACL).
public GenericAce Current { get; }

Gets the current element in the GenericAce collection. This property gets the type-friendly version of the object.

public bool MoveNext()

Advances the enumerator to the next element of the GenericAce collection.

public void Reset()

Sets the enumerator to its initial position, which is before the first element in the GenericAce collection.