Aracılığıyla paylaş


AppResourceGroupBackgroundTaskReport.Name Property

Definition

Gets the name of the background task.

public:
 property Platform::String ^ Name { Platform::String ^ get(); };
winrt::hstring Name();
public string Name { get; }
var string = appResourceGroupBackgroundTaskReport.name;
Public ReadOnly Property Name As String

Property Value

String

Platform::String

winrt::hstring

The background task name.

Windows requirements

App capabilities
appDiagnostics

Remarks

This is the name supplied by the app when it registered the task with BackgroundTaskBuilder

Some background tasks do not have names and will return an empty string because they are not explicitly registered. For example, background audio playback tasks and app-service tasks.

Applies to