<PackageReference Include="System.Security.AccessControl" Version="6.0.0-preview.3.21201.4" />

GenericAce

public abstract class GenericAce
Represents an Access Control Entry (ACE), and is the base class for all other ACE classes.
public AceFlags AceFlags { get; set; }

Gets or sets the AceFlags associated with this GenericAce object.

public AceType AceType { get; }

Gets the type of this Access Control Entry (ACE).

public AuditFlags AuditFlags { get; }

Gets the audit information associated with this Access Control Entry (ACE).

public abstract int BinaryLength { get; }

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

Gets flags that specify the inheritance properties of this Access Control Entry (ACE).

public bool IsInherited { get; }

Gets a Boolean value that specifies whether this Access Control Entry (ACE) is inherited or is set explicitly.

Gets flags that specify the inheritance propagation properties of this Access Control Entry (ACE).

public static GenericAce CreateFromBinaryForm(byte[] binaryForm, int offset)

Creates a GenericAce object from the specified binary data.

public static bool op_Equality(GenericAce left, GenericAce right)

Determines whether the specified GenericAce objects are considered equal.

public static bool op_Inequality(GenericAce left, GenericAce right)

Determines whether the specified GenericAce objects are considered unequal.

public GenericAce Copy()

Creates a deep copy of this Access Control Entry (ACE).

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

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