AppResourceGroupBackgroundTaskReport.Trigger Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the name of the trigger that activated this task.
public:
property Platform::String ^ Trigger { Platform::String ^ get(); };
winrt::hstring Trigger();
public string Trigger { get; }
var string = appResourceGroupBackgroundTaskReport.trigger;
Public ReadOnly Property Trigger As String
Property Value
The name of the trigger.
Windows requirements
App capabilities |
appDiagnostics
|
Remarks
If the task is activated by a trigger, then this will be the trigger type name; otherwise it will be an internally-generated string that identifies the activation behavior. For example, the trigger string would be "Windows.ApplicationModel.Background.ActivitySensorTrigger"
if an app set a background task trigger in code like this:
var builder = new Windows.ApplicationModel.Background.BackgroundTaskBuilder;
builder.SetTrigger(new Windows.ApplicationModel.Background.ActivitySensorTrigger(50));
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for