Aracılığıyla paylaş


AppResourceGroupBackgroundTaskReport.EntryPoint Property

Definition

Gets the name of the background task entry point.

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

Property Value

String

Platform::String

winrt::hstring

The name of the entry point as specified in the app manifest.

Windows requirements

App capabilities
appDiagnostics

Remarks

The entry point string is taken from the definition in the manifest. For example, the EntryPoint string will be "Tasks.BackgroundTaskClass" for a manifest that contains the following declaration:

<Extension Category="windows.backgroundTasks" EntryPoint="Tasks.BackgroundTaskClass">
    <BackgroundTasks>
        <Task Type="systemEvent" />
        <Task Type="pushNotification" />
    </BackgroundTasks>
</Extension>

For JavaScript tasks, the entry point string is taken from the value of the StartPage attribute in the background task registration. For example, the entry point string will be "js\completionGroupBackgroundTask.js" for a manifest that contains the following declaration:

<Extension Category="windows.backgroundTasks" StartPage="js\completionGroupBackgroundTask.js">
  <BackgroundTasks>
    <Task Type="general" />
  </BackgroundTasks>
</Extension>

Applies to