AppTaskResultAsset Class
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.
Represents an asset produced by a completed task, such as a file or other generated content.
public ref class AppTaskResultAsset sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Shell.Tasks.IAppTaskResultAssetFactory, 65536, "Windows.UI.Shell.Tasks.AppTaskContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.Shell.Tasks.AppTaskContract, 65536)]
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppTaskResultAsset final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Shell.Tasks.IAppTaskResultAssetFactory), 65536, "Windows.UI.Shell.Tasks.AppTaskContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.Shell.Tasks.AppTaskContract), 65536)]
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppTaskResultAsset
function AppTaskResultAsset(name, context, iconUri, assetUri)
Public NotInheritable Class AppTaskResultAsset
- Inheritance
- Attributes
Windows requirements
| Requirements | Description |
|---|---|
| Device family |
Windows Desktop Extension SDK (introduced in 10.0.26100.0)
|
| API contract |
Windows.UI.Shell.Tasks.AppTaskContract (introduced in v2.0)
|
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.
Use this class with AppTaskContent.CreateGeneratedAssetsResult to display task results that include generated assets.
Constructors
| Name | Description |
|---|---|
| AppTaskResultAsset(String, String, Uri, Uri) |
Creates a new instance of |