Utf8JsonReader.GetUInt16 Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API is not CLS-compliant.
Parses the current JSON token value from the source as a UInt16.
public:
System::UInt16 GetUInt16();
[System.CLSCompliant(false)]
public ushort GetUInt16 ();
[<System.CLSCompliant(false)>]
member this.GetUInt16 : unit -> uint16
Public Function GetUInt16 () As UShort
Returns
The UTF-8 encoded token value parsed to a UInt16.
- 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 UInt16.MinValue or greater than UInt16.MaxValue.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om