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

◆ AccessRule() [6/6]

System.Security.AccessControl.AccessRule< T >.AccessRule ( IdentityReference identity,
int accessMask,
bool isInherited,
InheritanceFlags inheritanceFlags,
PropagationFlags propagationFlags,
AccessControlType type )
inlineprotected

Definition at line 40 of file AccessRule.cs.

41 : base(identity, accessMask, isInherited, inheritanceFlags, propagationFlags)
42 {
43 if (type != 0 && type != AccessControlType.Deny)
44 {
45 throw new ArgumentOutOfRangeException("type", System.SR.ArgumentOutOfRange_Enum);
46 }
47 if ((inheritanceFlags < InheritanceFlags.None) || inheritanceFlags > (InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit))
48 {
49 throw new ArgumentOutOfRangeException("inheritanceFlags", System.SR.Format(System.SR.Argument_InvalidEnumValue, inheritanceFlags, "InheritanceFlags"));
50 }
51 if ((propagationFlags < PropagationFlags.None) || propagationFlags > (PropagationFlags.NoPropagateInherit | PropagationFlags.InheritOnly))
52 {
53 throw new ArgumentOutOfRangeException("propagationFlags", System.SR.Format(System.SR.Argument_InvalidEnumValue, inheritanceFlags, "PropagationFlags"));
54 }
55 _type = type;
56 }
static string ArgumentOutOfRange_Enum
Definition SR.cs:18
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Argument_InvalidEnumValue
Definition SR.cs:18
Definition SR.cs:7
readonly AccessControlType _type
Definition AccessRule.cs:36

References System.Security.AccessControl.AccessRule< T >._type, System.SR.Argument_InvalidEnumValue, System.SR.ArgumentOutOfRange_Enum, System.SR.Format(), and System.type.