Utf8JsonReader.GetGuid Method


Reads the next JSON token value from the source and parses it to a Guid.

 Guid GetGuid();
public Guid GetGuid ();
member this.GetGuid : unit -> Guid
Public Function GetGuid () As Guid


The GUID value, if the entire UTF-8 encoded token value can be successfully parsed.


The value of the JSON token isn't a String.

The JSON token value is in an unsupported format for a Guid.


The entire UTF-8 encoded token value cannot be parsed to a Guid value.

Applies to

See also