Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

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
Object Platform::Object IInspectable WidgetInfo
Attributes

Remarks

Get an instance of this class by calling Microsoft.Windows.Widgets.Providers.WidgetManager.GetWidgetInfo or Microsoft.Windows.Widgets.Providers.WidgetManager.GetWidgetInfos.

Properties

Name Description
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.

IsPlaceholderContent

Gets a value indicating whether the content of the update is placeholder content.

LastUpdateTime

Gets the time that the widget was last updated.

Rank

Gets a value indicating the rank of the widget, relative to other widgets from the same package identity.

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


Feedback

Was this page helpful?