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

◆ DiscretionaryAcl

DiscretionaryAcl? System.Security.AccessControl.CommonSecurityDescriptor.DiscretionaryAcl
getset

Definition at line 85 of file CommonSecurityDescriptor.cs.

86 {
87 get
88 {
89 return _dacl;
90 }
91 set
92 {
93 if (value != null)
94 {
95 if (value.IsContainer != IsContainer)
96 {
97 throw new ArgumentException(IsContainer ? System.SR.AccessControl_MustSpecifyContainerAcl : System.SR.AccessControl_MustSpecifyLeafObjectAcl, "value");
98 }
99 if (value.IsDS != IsDS)
100 {
101 throw new ArgumentException(IsDS ? System.SR.AccessControl_MustSpecifyDirectoryObjectAcl : System.SR.AccessControl_MustSpecifyNonDirectoryObjectAcl, "value");
102 }
103 }
104 if (value == null)
105 {
107 }
108 else
109 {
110 _dacl = value;
111 }
112 _rawSd.DiscretionaryAcl = _dacl.RawAcl;
113 AddControlFlags(ControlFlags.DiscretionaryAclPresent);
114 }
115 }
static string AccessControl_MustSpecifyContainerAcl
Definition SR.cs:32
static string AccessControl_MustSpecifyDirectoryObjectAcl
Definition SR.cs:34
Definition SR.cs:7
static DiscretionaryAcl CreateAllowEveryoneFullAccess(bool isDS, bool isContainer)

Referenced by System.Security.AccessControl.CommonSecurityDescriptor.CommonSecurityDescriptor(), System.Security.AccessControl.CommonSecurityDescriptor.AddDiscretionaryAcl(), System.Security.AccessControl.CommonObjectSecurity.GetRules(), System.Security.AccessControl.CommonObjectSecurity.ModifyAccess(), and System.Security.AccessControl.NativeObjectSecurity.Persist().