AppTaskContent.CreateTextSummaryResult(String) Method

Definition

Creates task content that displays a text summary of the task result.

public:
 static AppTaskContent ^ CreateTextSummaryResult(Platform::String ^ text);
/// [Windows.Foundation.Metadata.Experimental]
 static AppTaskContent CreateTextSummaryResult(winrt::hstring const& text);
[Windows.Foundation.Metadata.Experimental]
public static AppTaskContent CreateTextSummaryResult(string text);
function createTextSummaryResult(text)
Public Shared Function CreateTextSummaryResult (text As String) As AppTaskContent

Parameters

text
String

Platform::String

winrt::hstring

A short description summarizing the task result.

Returns

A new AppTaskContent object that displays a text summary.

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 completes and you want to provide a brief text description of the result.

Applies to