共用方式為


WidgetInfo.Template 屬性

定義

取得字串,其中包含小工具目前的調適型卡片 JSON 視覺效果範本。

public:
 property Platform::String ^ Template { Platform::String ^ get(); };
winrt::hstring Template();
public string Template { get; }
var string = widgetInfo.template;
Public ReadOnly Property Template As String

屬性值

String

Platform::String

winrt::hstring

JSON 字串。

備註

呼叫 WidgetManager.UpdateWidget(WidgetUpdateRequestOptions) 來設定小工具的視覺化範本。

適用於