Bagikan melalui


CommonSecurityDescriptor.SetDiscretionaryAclProtection Metode

Definisi

Mengatur perlindungan pewarisan untuk Daftar Access Control Diskresi (DACL) yang terkait dengan objek iniCommonSecurityDescriptor. DACL yang dilindungi tidak mewarisi aturan akses dari kontainer induk.

public:
 void SetDiscretionaryAclProtection(bool isProtected, bool preserveInheritance);
public void SetDiscretionaryAclProtection (bool isProtected, bool preserveInheritance);
member this.SetDiscretionaryAclProtection : bool * bool -> unit
Public Sub SetDiscretionaryAclProtection (isProtected As Boolean, preserveInheritance As Boolean)

Parameter

isProtected
Boolean

true untuk melindungi DACL dari pewarisan.

preserveInheritance
Boolean

true untuk menyimpan aturan akses yang diwariskan di DACL; false untuk menghapus aturan akses yang diwariskan dari DACL.

Berlaku untuk