WidgetContext.DefinitionId Property

Definition

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

String

Platform::String

winrt::hstring

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.

Applies to