Share via


WidgetUpdateRequestOptions(String) Constructor

Definition

Initializes a new instance of the WidgetRequestOptions class.

public:
 WidgetUpdateRequestOptions(Platform::String ^ widgetId);
 WidgetUpdateRequestOptions(winrt::hstring const& widgetId);
public WidgetUpdateRequestOptions(string widgetId);
function WidgetUpdateRequestOptions(widgetId)
Public Sub New (widgetId As String)

Parameters

widgetId
String

Platform::String

winrt::hstring

The widget ID of the widget to be updated.

Remarks

Passing a WidgetRequestOption to Microsoft.Windows.Widgets.Providers.WidgetManager.UpdateWidget with an ID of a widget that has been deleted, a widget not associated with your app, or using a widget ID that does not exist will result in the update being ignored.

Applies to