Class UntrustedViewLimits
How much a view from somewhere other than the game -- a server's -- may hold, so that a hostile one cannot take the client down by size alone.
public sealed record UntrustedViewLimits : IEquatable<UntrustedViewLimits>
- Inheritance
-
UntrustedViewLimits
- Implements
- Inherited Members
Constructors
UntrustedViewLimits(int, int, int)
How much a view from somewhere other than the game -- a server's -- may hold, so that a hostile one cannot take the client down by size alone.
public UntrustedViewLimits(int MostCharacters = 262144, int MostDepth = 32, int MostElements = 2000)
Parameters
MostCharactersintThe longest its markup may be.
MostDepthintHow deeply its elements may nest.
MostElementsintHow many elements it may have in all, controls and their parts.
Properties
Default
What a view is held to when the game names no limits of its own.
public static UntrustedViewLimits Default { get; }
Property Value
MostCharacters
The longest its markup may be.
public int MostCharacters { get; init; }
Property Value
MostDepth
How deeply its elements may nest.
public int MostDepth { get; init; }
Property Value
MostElements
How many elements it may have in all, controls and their parts.
public int MostElements { get; init; }