BackgroundTaskRegistration.Unregister | unregister method

Applies to Windows and Windows Phone

Cancels the registration of a registered background task.

Syntax


public:
void Unregister(
  bool cancelTask
)

Parameters

cancelTask

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

True if currently running instances of this background task should be canceled. If this parameter is false, currently running instances are allowed to finish. Canceled instances receive a Canceled event with a cancellation reason of Abort.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Background
Windows::ApplicationModel::Background [C++]

Metadata

Windows.winmd

See also

BackgroundTaskRegistration

 

 

Show:
© 2014 Microsoft