JsonElement.GetGuid Method

Definition

Gets the value of the element as a Guid.

public Guid GetGuid();

Returns

The value of the element as a Guid.

Exceptions

The value cannot be represented as a Guid.

The parent JsonDocument has been disposed.

Remarks

This method does not create a Guid representation of values other than JSON strings.

Applies to