AppTaskInfo.IconUri Property

Definition

Gets the path to an icon that represents the task.

public:
 property Uri ^ IconUri { Uri ^ get(); };
/// [Windows.Foundation.Metadata.Experimental]
/// [get: Windows.Foundation.Metadata.Experimental]
Uri IconUri();
[Windows.Foundation.Metadata.Experimental]
public System.Uri IconUri { [Windows.Foundation.Metadata.Experimental] get; }
var uri = appTaskInfo.iconUri;
Public ReadOnly Property IconUri As Uri

Property Value

The path to an icon that represents the task.

Attributes

Remarks

Important

App task support will start gradually rolling out to Windows 11 starting May, 2026. The experiences enabled by Windows.UI.Shell.Tasks APIs require that the corresponding app task feature be present in the version of Windows where the app runs. Otherwise, these APIs will not have any effect.

These path formats are supported:

  • ms-appx:/// - Package-relative URI to the app's package folder (recommended)
  • ms-appdata:/// - Package-relative URI to the app's data folders
  • Absolute paths - For example, C:\Program Files\MyApp\icon.png or file://c:/temp/icon.png

Applies to