<PackageReference Include="System.Security.AccessControl" Version="4.6.0-preview6.19303.8" />

GenericSecurityDescriptor

public abstract class GenericSecurityDescriptor
Represents a security descriptor. A security descriptor includes an owner, a primary group, a Discretionary Access Control List (DACL), and a System Access Control List (SACL).
public static byte Revision { get; }

Gets the revision level of the GenericSecurityDescriptor object.

public int BinaryLength { get; }

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

public abstract ControlFlags ControlFlags { get; }

Gets values that specify behavior of the GenericSecurityDescriptor object.

public abstract SecurityIdentifier Group { get; set; }

Gets or sets the primary group for this GenericSecurityDescriptor object.

public abstract SecurityIdentifier Owner { get; set; }

Gets or sets the owner of the object associated with this GenericSecurityDescriptor object.

public static bool IsSddlConversionSupported()

Returns a boolean value that specifies whether the security descriptor associated with this GenericSecurityDescriptor object can be converted to the Security Descriptor Definition Language (SDDL) format.

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

Returns an array of byte values that represents the information contained in this GenericSecurityDescriptor object.

public string GetSddlForm(AccessControlSections includeSections)

Returns the Security Descriptor Definition Language (SDDL) representation of the specified sections of the security descriptor that this GenericSecurityDescriptor object represents.