AppTaskContent.CreatePreviewThumbnail(Uri, String) Method

Definition

Creates task content that displays a preview thumbnail of the task output.

public:
 static AppTaskContent ^ CreatePreviewThumbnail(Uri ^ imageUri, Platform::String ^ executingStep);
/// [Windows.Foundation.Metadata.Experimental]
 static AppTaskContent CreatePreviewThumbnail(Uri const& imageUri, winrt::hstring const& executingStep);
[Windows.Foundation.Metadata.Experimental]
public static AppTaskContent CreatePreviewThumbnail(System.Uri imageUri, string executingStep);
function createPreviewThumbnail(imageUri, executingStep)
Public Shared Function CreatePreviewThumbnail (imageUri As Uri, executingStep As String) As AppTaskContent

Parameters

imageUri
Uri Uri

The URI of the thumbnail image to display. Supports ms-appx:///, ms-appdata:///, and absolute file paths.

executingStep
String

Platform::String

winrt::hstring

A string that represents the step that is currently executing.

Returns

A new AppTaskContent object that displays an image preview.

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.

Applies to