FeedErrorInfoReportedArgs.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 = feedErrorInfoReportedArgs.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",
  "feedId": "{FEED_ID}",
  "announcementId": "{ANNOUNCEMENT_ID}",
  "error": "{ERROR_KIND}",
  "errorMessage": "{ERROR_MESSAGE}"
}

The following example shows the error JSON string returned when the announcement expired while waiting for a slot to display:
```json
json
{
"host": "dashboard.microsoft.com ",
"version": "1.0",
"feedId": "MyFeedId",
"announcementId": "MyAnnouncementId",
"errorKind": "Announcement",
"errorMessage": "Announcement expired"
}

Applies to