WidgetInfo.Data Property

Definition

Gets a string containing the current Adaptive Card JSON data template for the widget.

public:
 property Platform::String ^ Data { Platform::String ^ get(); };
winrt::hstring Data();
public string Data { get; }
var string = widgetInfo.data;
Public ReadOnly Property Data As String

Property Value

String

Platform::String

winrt::hstring

A JSON string.

Remarks

Set the data template for a widget by calling Microsoft.Windows.Widgets.Providers.WidgetManager.UpdateWidget.

Applies to