Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ScheduledActionService.Replace Method

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.

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

public static void Replace(
	ScheduledAction action
)

Parameters

action
Type: Microsoft.Phone.Scheduler.ScheduledAction
The ScheduledAction object to replace.

This method is only for use with ScheduledNotification. Attempting to replace a ScheduledTask with this method will throw an exception.

This method may throw one of the following exceptions.

InvalidOperationException

No ScheduledAction with the same name as the provided object is registered with the service.

NotSupportedException

The Replace method is only for use with ScheduledNotification objects. ScheduledTask objects are not supported.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2015 Microsoft