AppTaskInfo.IconUri Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.pngorfile://c:/temp/icon.png