Share via


CommonSecurityDescriptor.AddDiscretionaryAcl(Byte, Int32) 方法

定義

設定這個 CommonSecurityDescriptor 執行個體的 DiscretionaryAcl 屬性,並設定 DiscretionaryAclPresent 旗標。

public:
 void AddDiscretionaryAcl(System::Byte revision, int trusted);
public void AddDiscretionaryAcl (byte revision, int trusted);
member this.AddDiscretionaryAcl : byte * int -> unit
Public Sub AddDiscretionaryAcl (revision As Byte, trusted As Integer)

參數

revision
Byte

DiscretionaryAcl 物件的修訂層級。

trusted
Int32

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

備註

的建構函式會 DiscretionaryAcl 針對這個 CommonSecurityDescriptor 使用 IsContainerIsDS 屬性。

適用於