WidgetContext.DefinitionId 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 identifier registered by the widget provider to categorize the widget.
public:
property Platform::String ^ DefinitionId { Platform::String ^ get(); };
winrt::hstring DefinitionId();
public string DefinitionId { get; }
var string = widgetContext.definitionId;
Public ReadOnly Property DefinitionId As String
Property Value
Remarks
The DefinitionId for a widget is set in the widget package manifest. This value is app-defined and is not validated by the widget host. Multiple widgets can share the same DefinitionId value. For information on the widget package manifest, see Widget provider package manifest XML format.