2 out of 2 rated this helpful - Rate this topic

ScheduledActionService Class

July 26, 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.

  NameDescription
Public methodStatic memberAddRegisters a scheduled action with the operating system.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberFindAttempts to return the ScheduledAction with the specified name.
Public methodStatic memberGetActions<T>Returns all ScheduledAction objects of the specified type that are registered with the system.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberLaunchForTestCauses the background agent associated with a ScheduledTask to be run in the background after the specified delay.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberRemoveRemoves the ScheduledAction with the specified name from the Scheduled Action Service.
Public methodStatic memberReplaceReplaces 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 methodToString (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)
© 2013 Microsoft. All rights reserved.