WidgetContext.Id 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得與 WidgetContext 相關聯的元件 ID。
public:
property Platform::String ^ Id { Platform::String ^ get(); };
winrt::hstring Id();
public string Id { get; }
var string = widgetContext.id;
Public ReadOnly Property Id As String
屬性值
與 WidgetContext 相關聯的小工具的 ID。
備註
Widget ID 值由 WidgetManager 動態產生。 從小工具建立的那一刻起,小工具的 ID 保持不變,直到小工具被刪除為止。 Widget ID 是所有 Widget 及其提供者間唯一的值。