Επεξεργασία

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


JsonElement.GetString Method

Definition

Gets the value of the element as a String.

public:
 System::String ^ GetString();
public string? GetString ();
public string GetString ();
member this.GetString : unit -> string
Public Function GetString () As String

Returns

The value of the element as a String.

Exceptions

This value's ValueKind is neither String nor Null.

The parent JsonDocument has been disposed.

Remarks

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

Applies to