JwtSecurityTokenHandler.MaxTokenSizeInBytes Property
Gets or sets the size limit when reading a token as a string.
Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)
Syntax
'Declaration
Public Property MaxTokenSizeInBytes As UInteger
public uint MaxTokenSizeInBytes { get; set; }
public:
property unsigned int MaxTokenSizeInBytes {
unsigned int get ();
void set (unsigned int value);
}
member MaxTokenSizeInBytes : uint32 with get, set
function get MaxTokenSizeInBytes () : uint
function set MaxTokenSizeInBytes (value : uint)
Property Value
Type: System.UInt32
Returns UInt32.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | 'value' == 0. |
Remarks
This does not set limits when reading tokens using a XmlReader. Use xml quotas on the XmlReader for those limits.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.