1 out of 2 rated this helpful - Rate this topic

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.

System.Object
  Microsoft.Phone.BackgroundAgent
    Microsoft.Phone.Scheduler.ScheduledTaskAgent

Namespace:  Microsoft.Phone.Scheduler
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public abstract class ScheduledTaskAgent : BackgroundAgent

The ScheduledTaskAgent type exposes the following members.

  NameDescription
Protected methodScheduledTaskAgentInitializes a new instance of the ScheduledTaskAgent class.
Top
  NameDescription
Protected methodAbortInforms 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.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodNotifyCompleteInforms the operating system that the agent has completed its intended task for the current invocation of the agent. (Inherited from BackgroundAgent.)
Protected methodOnCancelNot supported. (Overrides BackgroundAgent.OnCancel().)
Protected methodOnInvokeCalled when the Scheduled Task is executed. Override this method and provide the code that should execute in the background.
Public methodToString (Inherited from Object.)
Top

Windows Phone OS

Supported in: 7.1

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.