Edit

Share via


Utf8JsonReader.GetSByte Method

Definition

Important

This API is not CLS-compliant.

Parses the current JSON token value from the source as an SByte.

public:
 System::SByte GetSByte();
[System.CLSCompliant(false)]
public sbyte GetSByte ();
[<System.CLSCompliant(false)>]
member this.GetSByte : unit -> sbyte
Public Function GetSByte () As SByte

Returns

The UTF-8 encoded token value parsed to an SByte.

Attributes

Exceptions

The value of the JSON token is not a Number.

The numeric format of the JSON token value is incorrect (for example, it contains a fractional value or is written in scientific notation).

-or-

The JSON token value represents a number less than SByte.MinValue or greater than SByte.MaxValue.

Applies to

See also