WidgetUpdateRequestOptions(String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.