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.v20.2.AspNetCore.dll


public static string XmlToJson(
    XDocument dashboardDocument,
    IDataProtectionProvider protectionProvider
Public Shared Function XmlToJson(
    dashboardDocument As XDocument,
    protectionProvider As IDataProtectionProvider
) As String


Name Type Description
dashboardDocument XDocument

A XDocument that specifies the dashboard XML definition.

protectionProvider IDataProtectionProvider

A IDataProtectionProvider object that provides data protection services.


Type Description

A String value that is the JSON dashboard model.

See Also