Language

AppTaskContent.CreateGeneratedAssetsResult(AppTaskResultAsset[]) Method

Definition

Creates task content that displays a collection of assets generated by the task.

public:
 static AppTaskContent ^ CreateGeneratedAssetsResult(Platform::Array <AppTaskResultAsset ^> ^ assets);
/// [Windows.Foundation.Metadata.Experimental]
 static AppTaskContent CreateGeneratedAssetsResult(winrt::array_view <AppTaskResultAsset const&> const& assets);
[Windows.Foundation.Metadata.Experimental]
public static AppTaskContent CreateGeneratedAssetsResult(AppTaskResultAsset[] assets);
function createGeneratedAssetsResult(assets)
Public Shared Function CreateGeneratedAssetsResult (assets As AppTaskResultAsset()) As AppTaskContent

Parameters

assets
AppTaskResultAsset[]

An array of AppTaskResultAsset objects that represent the generated content.

Returns

A new AppTaskContent object that displays the generated assets.

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.

Use this content type when a task produces files or other content that you want to display to the user.

Applies to