WidgetInfo.CustomState Property

Definition

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

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

Property Value

String

Platform::String

winrt::hstring

Remarks

The custom state format is app-defined and isn't validated by the widget host.

Set the custom state for a widget by calling Microsoft.Windows.Widgets.Providers.WidgetManager.UpdateWidget

Applies to