WidgetManager Classe

Definizione

Fornisce metodi per l'esecuzione di query, l'aggiornamento e l'eliminazione di widget.

public ref class WidgetManager sealed : IWidgetManager
public ref class WidgetManager sealed : IWidgetManager, IWidgetManager2
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Widgets.WidgetContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class WidgetManager final : IWidgetManager
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Widgets.WidgetContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class WidgetManager final : IWidgetManager, IWidgetManager2
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Widgets.WidgetContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class WidgetManager : IWidgetManager
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Widgets.WidgetContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class WidgetManager : IWidgetManager, IWidgetManager2
Public NotInheritable Class WidgetManager
Implements IWidgetManager
Public NotInheritable Class WidgetManager
Implements IWidgetManager, IWidgetManager2
Ereditarietà
Object Platform::Object IInspectable WidgetManager
Attributi
Implementazioni

Commenti

Questa classe può eseguire operazioni solo sui widget esistenti.

Ottenere un'istanza di questa classe chiamando GetDefault.

Metodi

Nome Descrizione
DeleteWidget(String)

Richiede la rimozione di un widget dall'host del widget.

GetDefault()

Ottiene un'istanza della classe WidgetManager .

GetWidgetIds()

Ottiene tutti gli ID widget per i widget associati all'app provider chiamante.

GetWidgetInfo(String)

Ottiene un oggetto WidgetInfo contenente informazioni sul widget con l'ID widget fornito, inclusi il modello di oggetto visivo, il modello di dati, lo stato personalizzato, l'ora dell'ultimo aggiornamento e le informazioni di contesto dall'host del widget.

GetWidgetInfos()

Ottiene le informazioni archiviate per tutti i widget associati all'app chiamante.

SendMessageToContent(String, String)

Inviare un messaggio stringa al contenuto Web in un widget visualizzato nell'host dei widget.

UpdateWidget(WidgetUpdateRequestOptions)

Fornisce contenuto aggiornato per un widget all'host del widget.

Si applica a