Skip to main content

DashboardJsonConverter.XmlToJson(XDocument, IDataProtectionProvider) Method

Converts a dashboard XML definition to the JSON string with specified data protection services.

Namespace: DevExpress.DashboardAspNetCore

Assembly: DevExpress.Dashboard.v23.2.AspNetCore.dll

NuGet Package: DevExpress.AspNetCore.Dashboard

Declaration

public static string XmlToJson(
    XDocument dashboardDocument,
    IDataProtectionProvider protectionProvider
)

Parameters

Name Type Description
dashboardDocument XDocument

A XDocument that specifies the dashboard XML definition.

protectionProvider IDataProtectionProvider

A IDataProtectionProvider object that provides data protection services.

Returns

Type Description
String

A String value that is the JSON dashboard model.

See Also