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

◆ SetOpaque()

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

Definition at line 38 of file CustomAce.cs.

39 {
40 if (opaque != null)
41 {
42 if (opaque.Length > MaxOpaqueLength)
43 {
44 throw new ArgumentOutOfRangeException("opaque", System.SR.Format(System.SR.ArgumentOutOfRange_ArrayLength, 0, MaxOpaqueLength));
45 }
46 if (opaque.Length % 4 != 0)
47 {
48 throw new ArgumentOutOfRangeException("opaque", System.SR.Format(System.SR.ArgumentOutOfRange_ArrayLengthMultiple, 4));
49 }
50 }
51 _opaque = opaque;
52 }
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
static readonly int MaxOpaqueLength
Definition CustomAce.cs:7

References System.Security.AccessControl.CustomAce._opaque, System.SR.ArgumentOutOfRange_ArrayLength, System.SR.ArgumentOutOfRange_ArrayLengthMultiple, System.SR.Format(), and System.Security.AccessControl.CustomAce.MaxOpaqueLength.

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