Επεξεργασία

Κοινή χρήση μέσω


JsonElement.GetGuid Method

Definition

Gets the value of the element as a Guid.

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

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