ScheduledTaskAgent.OnCancel Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Not supported.

Namespace: Microsoft.Phone.Scheduler
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)


Protected Friend Overrides Sub OnCancel
protected internal override void OnCancel()


This method, inherited from BackgroundAgent, is not supported for ScheduledTaskAgent objects. Background audio agents do use this method. For more information, see the AudioStreamingAgent method, OnCancel()()().

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1


Windows Phone

See Also


ScheduledTaskAgent Class

Microsoft.Phone.Scheduler Namespace