DeserializeXNode Method (value, deserializeRootElementName)

Json.NET

Json.NET - Quick Starts & API Documentation DeserializeXNode Method (value, deserializeRootElementName)
NamespacesNewtonsoft.JsonJsonConvertDeserializeXNode(String, String)
Deserializes the XNode from a JSON string nested in a root elment.
Declaration Syntax
C# Visual Basic Visual C++
public static XDocument DeserializeXNode(
	string value,
	string deserializeRootElementName
)
Public Shared Function DeserializeXNode ( _
	value As String, _
	deserializeRootElementName As String _
) As XDocument
public:
static XDocument^ DeserializeXNode(
	String^ value, 
	String^ deserializeRootElementName
)
Parameters
value (String)
The JSON string.
deserializeRootElementName (String)
The name of the root element to append when deserializing.
Return Value
The deserialized XNode

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.5.0.0 (4.5.6.14930)