Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
JsonElement.Clone Method
Definition
- Namespace:
- System.Text.Json
- Assembly:
- System.Text.Json.dll
- Package:
- System.Text.Json v11.0.0-preview.5.26302.115
- Source:
- JsonElement.cs
- Source:
- JsonElement.cs
- Source:
- JsonElement.cs
- Source:
- JsonElement.cs
- Source:
- JsonElement.cs
- Source:
- JsonElement.cs
- Source:
- JsonElement.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 a JsonElement that can be safely stored beyond the lifetime of the original JsonDocument.
public:
System::Text::Json::JsonElement Clone();
public System.Text.Json.JsonElement Clone();
member this.Clone : unit -> System.Text.Json.JsonElement
Public Function Clone () As JsonElement
Returns
A JsonElement that can be safely stored beyond the lifetime of the original JsonDocument.
Remarks
If this JsonElement is itself the output of a previous call to Clone or a value contained within another JsonElement that was the output of a previous call to Clone, this method results in no additional memory allocation.
Applies to
Feedback
Was this page helpful?
