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

◆ SetOpaque()

void System.Security.AccessControl.QualifiedAce.SetOpaque ( byte?[] opaque)
inline

Definition at line 100 of file QualifiedAce.cs.

101 {
102 if (opaque != null)
103 {
104 if (opaque.Length > MaxOpaqueLengthInternal)
105 {
106 throw new ArgumentOutOfRangeException("opaque", System.SR.Format(System.SR.ArgumentOutOfRange_ArrayLength, 0, MaxOpaqueLengthInternal));
107 }
108 if (opaque.Length % 4 != 0)
109 {
110 throw new ArgumentOutOfRangeException("opaque", System.SR.Format(System.SR.ArgumentOutOfRange_ArrayLengthMultiple, 4));
111 }
112 }
113 _opaque = opaque;
114 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string ArgumentOutOfRange_ArrayLength
Definition SR.cs:70
static string ArgumentOutOfRange_ArrayLengthMultiple
Definition SR.cs:72
Definition SR.cs:7

References System.Security.AccessControl.QualifiedAce._opaque, System.SR.ArgumentOutOfRange_ArrayLength, System.SR.ArgumentOutOfRange_ArrayLengthMultiple, System.SR.Format(), and System.Security.AccessControl.QualifiedAce.MaxOpaqueLengthInternal.

Referenced by System.Security.AccessControl.QualifiedAce.QualifiedAce().