BackgroundTransferCompletionGroup.Enable Method
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.
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.