DiscretionaryAcl 建構函式

定義

初始化 DiscretionaryAcl 類別的新執行個體。

多載

DiscretionaryAcl(Boolean, Boolean, Int32)

使用指定的值,初始化 DiscretionaryAcl 類別的新執行個體。

DiscretionaryAcl(Boolean, Boolean, RawAcl)

使用指定的 DiscretionaryAcl 物件中的指定值,初始化 RawAcl 類別的新執行個體。

DiscretionaryAcl(Boolean, Boolean, Byte, Int32)

使用指定的值,初始化 DiscretionaryAcl 類別的新執行個體。

DiscretionaryAcl(Boolean, Boolean, Int32)

使用指定的值,初始化 DiscretionaryAcl 類別的新執行個體。

public:
 DiscretionaryAcl(bool isContainer, bool isDS, int capacity);
public DiscretionaryAcl (bool isContainer, bool isDS, int capacity);
new System.Security.AccessControl.DiscretionaryAcl : bool * bool * int -> System.Security.AccessControl.DiscretionaryAcl
Public Sub New (isContainer As Boolean, isDS As Boolean, capacity As Integer)

參數

isContainer
Boolean

如果新的 DiscretionaryAcl 物件是容器,則為 true

isDS
Boolean

如果新的 DiscretionaryAcl 物件是目錄物件存取控制清單 (ACL),則為 true

capacity
Int32

DiscretionaryAcl 物件可以容納的存取控制項目 (ACE) 數。 這個數字只做為提示之用。

適用於

DiscretionaryAcl(Boolean, Boolean, RawAcl)

使用指定的 DiscretionaryAcl 物件中的指定值,初始化 RawAcl 類別的新執行個體。

public:
 DiscretionaryAcl(bool isContainer, bool isDS, System::Security::AccessControl::RawAcl ^ rawAcl);
public DiscretionaryAcl (bool isContainer, bool isDS, System.Security.AccessControl.RawAcl rawAcl);
public DiscretionaryAcl (bool isContainer, bool isDS, System.Security.AccessControl.RawAcl? rawAcl);
new System.Security.AccessControl.DiscretionaryAcl : bool * bool * System.Security.AccessControl.RawAcl -> System.Security.AccessControl.DiscretionaryAcl
Public Sub New (isContainer As Boolean, isDS As Boolean, rawAcl As RawAcl)

參數

isContainer
Boolean

如果新的 DiscretionaryAcl 物件是容器,則為 true

isDS
Boolean

如果新的 DiscretionaryAcl 物件是目錄物件存取控制清單 (ACL),則為 true

rawAcl
RawAcl

RawAcl 物件的基礎 DiscretionaryAcl 物件。 您可以指定 null 以建立空的 ACL。

備註

複製物件中 RawAcl (ACE) 的 存取控制 Entries。

適用於

DiscretionaryAcl(Boolean, Boolean, Byte, Int32)

使用指定的值,初始化 DiscretionaryAcl 類別的新執行個體。

public:
 DiscretionaryAcl(bool isContainer, bool isDS, System::Byte revision, int capacity);
public DiscretionaryAcl (bool isContainer, bool isDS, byte revision, int capacity);
new System.Security.AccessControl.DiscretionaryAcl : bool * bool * byte * int -> System.Security.AccessControl.DiscretionaryAcl
Public Sub New (isContainer As Boolean, isDS As Boolean, revision As Byte, capacity As Integer)

參數

isContainer
Boolean

如果新的 DiscretionaryAcl 物件是容器,則為 true

isDS
Boolean

如果新的 DiscretionaryAcl 物件是目錄物件存取控制清單 (ACL),則為 true

revision
Byte

DiscretionaryAcl 物件的修訂層級。

capacity
Int32

DiscretionaryAcl 物件可以容納的存取控制項目 (ACE) 數。 這個數字只做為提示之用。

適用於