Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SystemAcl

SystemAcl? System.Security.AccessControl.CommonSecurityDescriptor.SystemAcl
getset

Definition at line 52 of file CommonSecurityDescriptor.cs.

53 {
54 get
55 {
56 return _sacl;
57 }
58 set
59 {
60 if (value != null)
61 {
62 if (value.IsContainer != IsContainer)
63 {
64 throw new ArgumentException(IsContainer ? System.SR.AccessControl_MustSpecifyContainerAcl : System.SR.AccessControl_MustSpecifyLeafObjectAcl, "value");
65 }
66 if (value.IsDS != IsDS)
67 {
68 throw new ArgumentException(IsDS ? System.SR.AccessControl_MustSpecifyDirectoryObjectAcl : System.SR.AccessControl_MustSpecifyNonDirectoryObjectAcl, "value");
69 }
70 }
71 _sacl = value;
72 if (_sacl != null)
73 {
74 _rawSd.SystemAcl = _sacl.RawAcl;
75 AddControlFlags(ControlFlags.SystemAclPresent);
76 }
77 else
78 {
79 _rawSd.SystemAcl = null;
80 RemoveControlFlags(ControlFlags.SystemAclPresent);
81 }
82 }
83 }
static string AccessControl_MustSpecifyContainerAcl
Definition SR.cs:32
static string AccessControl_MustSpecifyDirectoryObjectAcl
Definition SR.cs:34
Definition SR.cs:7

Referenced by System.Security.AccessControl.CommonSecurityDescriptor.CommonSecurityDescriptor(), System.Security.AccessControl.CommonSecurityDescriptor.AddSystemAcl(), System.Security.AccessControl.CommonObjectSecurity.GetRules(), System.Security.AccessControl.CommonObjectSecurity.ModifyAudit(), and System.Security.AccessControl.NativeObjectSecurity.Persist().