DiscretionaryAcl Constructors

Definition

Initializes a new instance of the DiscretionaryAcl class.

Overloads

DiscretionaryAcl(Boolean, Boolean, Int32)

Initializes a new instance of the DiscretionaryAcl class with the specified values.

DiscretionaryAcl(Boolean, Boolean, RawAcl)

Initializes a new instance of the DiscretionaryAcl class with the specified values from the specified RawAcl object.

DiscretionaryAcl(Boolean, Boolean, Byte, Int32)

Initializes a new instance of the DiscretionaryAcl class with the specified values.

DiscretionaryAcl(Boolean, Boolean, Int32)

Source:
ACL.cs

Initializes a new instance of the DiscretionaryAcl class with the specified values.

C#
public DiscretionaryAcl(bool isContainer, bool isDS, int capacity);

Parameters

isContainer
Boolean

true if the new DiscretionaryAcl object is a container.

isDS
Boolean

true if the new DiscretionaryAcl object is a directory object Access Control List (ACL).

capacity
Int32

The number of Access Control Entries (ACEs) this DiscretionaryAcl object can contain. This number is to be used only as a hint.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, 6 (package-provided), 6, 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5

DiscretionaryAcl(Boolean, Boolean, RawAcl)

Source:
ACL.cs

Initializes a new instance of the DiscretionaryAcl class with the specified values from the specified RawAcl object.

C#
public DiscretionaryAcl(bool isContainer, bool isDS, System.Security.AccessControl.RawAcl? rawAcl);
C#
public DiscretionaryAcl(bool isContainer, bool isDS, System.Security.AccessControl.RawAcl rawAcl);

Parameters

isContainer
Boolean

true if the new DiscretionaryAcl object is a container.

isDS
Boolean

true if the new DiscretionaryAcl object is a directory object Access Control List (ACL).

rawAcl
RawAcl

The underlying RawAcl object for the new DiscretionaryAcl object. Specify null to create an empty ACL.

Remarks

The Access Control Entries (ACEs) in the RawAcl object are cloned.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, 6 (package-provided), 6, 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5

DiscretionaryAcl(Boolean, Boolean, Byte, Int32)

Source:
ACL.cs

Initializes a new instance of the DiscretionaryAcl class with the specified values.

C#
public DiscretionaryAcl(bool isContainer, bool isDS, byte revision, int capacity);

Parameters

isContainer
Boolean

true if the new DiscretionaryAcl object is a container.

isDS
Boolean

true if the new DiscretionaryAcl object is a directory object Access Control List (ACL).

revision
Byte

The revision level of the new DiscretionaryAcl object.

capacity
Int32

The number of Access Control Entries (ACEs) this DiscretionaryAcl object can contain. This number is to be used only as a hint.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, 6 (package-provided), 6, 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5