public SetSecurityDescriptorSddlForm ( string sddlForm ) : void | ||
sddlForm | string | |
Результат | void |
private static void SetSecurity(ObjectSecurity security) { if (null == security) { throw new ArgumentNullException("security"); } // Set the DACL. security.SetSecurityDescriptorSddlForm("D:(A;;GA;;;WD)", AccessControlSections.Access); // Can only set integrity levels in the SACL for Vista and newer. Version vista = new Version(6, 0); if (vista <= Environment.OSVersion.Version) { security.SetSecurityDescriptorSddlForm("S:(ML;;NW;;;ME)", AccessControlSections.Audit); } }