WidgetInfo Class
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.
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
- Attributes
Remarks
Get an instance of this class by calling Microsoft.Windows.Widgets.Providers.WidgetManager.GetWidgetInfo or Microsoft.Windows.Widgets.Providers.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. |