Dela via


BackgroundTransferCompletionGroup.Trigger Property

Definition

Gets the IBackgroundTrigger used to set up the background task associated with the BackgroundTransferCompletionGroup.

public:
 property IBackgroundTrigger ^ Trigger { IBackgroundTrigger ^ get(); };
IBackgroundTrigger Trigger();
public IBackgroundTrigger Trigger { get; }
var iBackgroundTrigger = backgroundTransferCompletionGroup.trigger;
Public ReadOnly Property Trigger As IBackgroundTrigger

Property Value

The trigger used to set up the background task associated with the BackgroundTransferCompletionGroup.

Remarks

An IBackgroundTrigger must be used to set up the IBackgroundTask associated with a BackgroundTransferCompletionGroup. This trigger is configured to be used only once, so the Broker Infrastructure will automatically unregister the task as soon as it is triggered. Thus, there is no need to have any explicit task unregistration code.

An IBackgroundTrigger can be associated only with one IBackgroundTask.

This property never is NULL.

Applies to

See also