Aracılığıyla paylaş


AppResourceGroupBackgroundTaskReport.Trigger Property

Definition

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

String

Platform::String

winrt::hstring

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