DiscretionaryAcl 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 DiscretionaryAcl 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| DiscretionaryAcl(Boolean, Boolean, Int32) |
初始化一個新的類別實例 DiscretionaryAcl ,並以指定值。 |
| DiscretionaryAcl(Boolean, Boolean, RawAcl) |
以指定物件的指定值DiscretionaryAcl初始化類別的新實例RawAcl。 |
| DiscretionaryAcl(Boolean, Boolean, Byte, Int32) |
初始化一個新的類別實例 DiscretionaryAcl ,並以指定值。 |
DiscretionaryAcl(Boolean, Boolean, Int32)
- 來源:
- ACL.cs
初始化一個新的類別實例 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
true 如果新物件 DiscretionaryAcl 是容器。
- isDS
- Boolean
true 若新的 DiscretionaryAcl 物件是目錄物件存取控制清單(ACL)。
- capacity
- Int32
此DiscretionaryAcl物件可包含的存取控制條目(ACE)數量。 這個數字僅作為提示使用。
適用於
DiscretionaryAcl(Boolean, Boolean, RawAcl)
- 來源:
- ACL.cs
以指定物件的指定值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
true 如果新物件 DiscretionaryAcl 是容器。
- isDS
- Boolean
true 若新的 DiscretionaryAcl 物件是目錄物件存取控制清單(ACL)。
- rawAcl
- RawAcl
新物件的RawAcl底層DiscretionaryAcl物件。 指定 null 建立空的 ACL。
備註
RawAcl 物件中的存取控制條目(ACE)會被複製。
適用於
DiscretionaryAcl(Boolean, Boolean, Byte, Int32)
- 來源:
- ACL.cs
初始化一個新的類別實例 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
true 如果新物件 DiscretionaryAcl 是容器。
- isDS
- Boolean
true 若新的 DiscretionaryAcl 物件是目錄物件存取控制清單(ACL)。
- revision
- Byte
新物件的 DiscretionaryAcl 修訂等級。
- capacity
- Int32
此DiscretionaryAcl物件可包含的存取控制條目(ACE)數量。 這個數字僅作為提示使用。