AppTaskInfo.Id Propriété

Définition

Obtient l’identificateur unique généré automatiquement pour cette tâche.

public:
 property Platform::String ^ Id { Platform::String ^ get(); };
/// [Windows.Foundation.Metadata.Experimental]
/// [get: Windows.Foundation.Metadata.Experimental]
winrt::hstring Id();
[Windows.Foundation.Metadata.Experimental]
public string Id { [Windows.Foundation.Metadata.Experimental] get; }
var string = appTaskInfo.id;
Public ReadOnly Property Id As String

Valeur de propriété

String

Platform::String

winrt::hstring

Identificateur unique pour cette tâche.

Attributs

Remarques

Important

La prise en charge des tâches d’application démarre progressivement le déploiement vers Windows 11 à compter de mai 2026. Les expériences activées par Windows.UI.Shell.Tasks les API nécessitent que la fonctionnalité de tâche d’application correspondante soit présente dans la version de Windows où l’application s’exécute. Dans le cas contraire, ces API n’auront aucun effet.

S’applique à