Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

JsonDocument.RootElement Property

Definition

Namespace:
System.Text.Json
Assembly:
System.Text.Json.dll
Package:
System.Text.Json v11.0.0-preview.5.26302.115
Source:
JsonDocument.cs
Source:
JsonDocument.cs
Source:
JsonDocument.cs
Source:
JsonDocument.cs
Source:
JsonDocument.cs
Source:
JsonDocument.cs
Source:
JsonDocument.cs

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.

Gets the root element of this JSON document.

public:
 property System::Text::Json::JsonElement RootElement { System::Text::Json::JsonElement get(); };
public System.Text.Json.JsonElement RootElement { get; }
member this.RootElement : System.Text.Json.JsonElement
Public ReadOnly Property RootElement As JsonElement

Property Value

A JsonElement representing the value of the document.

Applies to


Feedback

Was this page helpful?