WidgetUpdateRequestOptions.CustomState Property

Definition

Gets or sets a string representing the custom state for the associated widget.

public:
 property Platform::String ^ CustomState { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring CustomState();

void CustomState(winrt::hstring value);
public string CustomState { get; set; }
var string = widgetUpdateRequestOptions.customState;
widgetUpdateRequestOptions.customState = string;
Public Property CustomState As String

Property Value

String

Platform::String

winrt::hstring

A string representing the custom state for the associated widget.

Remarks

The custom state string is app-defined and is not validated by the widget host.

For a walkthrough of creating a widget that maintains a custom state property, see Implement a widget provider in a win32 app.

Applies to