ScheduledTaskAgent Class
July 26, 2012
Override this class to implement a Scheduled Task, also referred to as a background agent. This class contains one method, OnInvoke, which is called whenever the Scheduled Task is executed. For more information, see Background Agents Overview for Windows Phone.
Namespace:
Microsoft.Phone.Scheduler
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
The ScheduledTaskAgent type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Abort | Informs the operating system that the agent is unable to perform its intended task and that it should not be launched again until the foreground application mitigates the blocking issue and reenables the agent. (Inherited from BackgroundAgent.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | NotifyComplete | Informs the operating system that the agent has completed its intended task for the current invocation of the agent. (Inherited from BackgroundAgent.) |
![]() | OnCancel | Not supported. (Overrides BackgroundAgent.OnCancel().) |
![]() | OnInvoke | Called when the Scheduled Task is executed. Override this method and provide the code that should execute in the background. |
![]() | ToString | (Inherited from Object.) |
