Dela via


BackgroundTransferCompletionGroup.Enable Method

Definition

Indicates that the BackgroundTransferCompletionGroup is complete and no more background transfer operations (DownloadOperation or UploadOperation objects) will be added t the completion group.

public:
 virtual void Enable() = Enable;
void Enable();
public void Enable();
function enable()
Public Sub Enable ()

Remarks

The Enable method must be called on the BackgroundTransferCompletionGroup to enable the completion group, otherwise the background task associated with the BackgroundTransferCompletionGroup will never be called.

Any attempt to add a DownloadOperation or UploadOperation to the BackgroundTransferCompletionGroup after calling the Enable method will result in an exception.

The Enable method on a BackgroundTransferCompletionGroup can only be called once. An attempt to call the Enable method more than once will result in an exception.

Applies to

See also