WidgetInfo Class

Definition

Contains status information for a widget, including the visual template, data template, custom state, the last update time, and context information from the widget host.

public ref class WidgetInfo sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Widgets.WidgetContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WidgetInfo final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Widgets.WidgetContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WidgetInfo
Public NotInheritable Class WidgetInfo
Inheritance
Object Platform::Object IInspectable WidgetInfo
Attributes

Remarks

Get an instance of this class by calling WidgetManager.GetWidgetInfo(String) or WidgetManager.GetWidgetInfos().

Properties

CustomState

Gets a string containing the current Adaptive Card JSON data template for the widget.

Data

Gets a string containing the current Adaptive Card JSON data template for the widget.

LastUpdateTime

Gets the time that the widget was last updated.

Template

Gets a string containing the current Adaptive Card JSON visual template for the widget.

WidgetContext

Gets a WidgetContext object containing information about the configuration of a widget within the widget host.

Applies to