CommonSecurityDescriptor.AddSystemAcl(Byte, Int32) 方法

定義

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

public void AddSystemAcl(byte revision, int trusted);

參數

revision
Byte

SystemAcl 物件的修訂層級。

trusted
Int32

SystemAcl 物件可以容納的存取控制項目 (ACE) 數。 這個數字只應用作提示。

備註

SystemAcl建構函式會IsContainer針對這個 CommonSecurityDescriptor使用和 IsDS 屬性。

適用於

產品 版本
.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 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