WidgetContext.Id Property
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.
Gets the ID of the widget associated with the WidgetContext.
public:
property Platform::String ^ Id { Platform::String ^ get(); };
winrt::hstring Id();
public string Id { get; }
var string = widgetContext.id;
Public ReadOnly Property Id As String
Property Value
The ID of the widget associated with the WidgetContext.
Remarks
The widget ID value is dynamically generated by the WidgetManager. The widget ID remains the same for a widget from the moment of its creation until the moment the Widget is deleted. The widget ID is a unique value across all widgets and all widget providers.