WidgetErrorInfoReportedArgs.ErrorJson Property

Definition

Gets a JSON string describing the error that triggered the error event.

public:
 property Platform::String ^ ErrorJson { Platform::String ^ get(); };
winrt::hstring ErrorJson();
public string ErrorJson { get; }
var string = widgetErrorInfoReportedArgs.errorJson;
Public ReadOnly Property ErrorJson As String

Property Value

String

Platform::String

winrt::hstring

A JSON string.

Remarks

The JSON string returned by this property uses the following format:

{
  "host": "dashboard.microsoft.com",
  "version": "1.0",
  "errorKind": "cardValidation",
  "didRenderCard": true,
  "validationEvents": ["Too many actions defined", "Unknown element type: 'myNewType'"],
  "source": [
        "\"actions\":[{\"type\":\"Action.Submit\",\"title\":\"Action1\"}, {\"type\":\"Action.Submit\",\"title\":\"Action2\"}, {\"type\":\"Action.Submit\",\"title\":\"Action3\"}]",
        "{\"type\":\"myNewType\",\"myProperty\":\"My Value\"}"
  ]
}

Applies to