2 out of 2 rated this helpful - Rate this topic

ScheduledActionService Class

Windows Phone

March 22, 2012

Enables the management of scheduled actions.

System.Object
  Microsoft.Phone.Scheduler.ScheduledActionService

Namespace:  Microsoft.Phone.Scheduler
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public sealed class ScheduledActionService

The ScheduledActionService type exposes the following members.

  Name Description
Public method Static member Add Registers a scheduled action with the operating system.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method Static member Find Attempts to return the ScheduledAction with the specified name.
Public method Static member GetActions<T> Returns all ScheduledAction objects of the specified type that are registered with the system.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Static member LaunchForTest Causes the background agent associated with a ScheduledTask to be run in the background after the specified delay.
Protected method MemberwiseClone (Inherited from Object.)
Public method Static member Remove Removes the ScheduledAction with the specified name from the Scheduled Action Service.
Public method Static member Replace Replaces an existing ScheduledAction with the one provided. The Name property uniquely identifies ScheduledAction objects and is used to determine which existing object, if any, is replaced.
Public method ToString (Inherited from Object.)
Top

ScheduledAction is a base class for Alarm and Reminder, which enable scheduled notifications to the end user, as well as PeriodicTask and ResourceIntensiveTask, which enable background agents that do processing even when the main application is not in the foreground. Use these child classes to create and configure scheduled actions, then use the Add(ScheduledAction) method to register the actions with the system. Use GetActions<T>() and Find(String) to retrieve actions that have been previously registered. Replace(ScheduledAction) is used to update an existing action, and Remove(String) removes a scheduled action from the system.

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)