0 out of 1 rated this helpful - Rate this topic

ScheduledTask.ExpirationTime Property

July 26, 2012

Gets or sets the time at which the task’s schedule expires.

Namespace:  Microsoft.Phone.Scheduler
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public override DateTime ExpirationTime { get; set; }

Property Value

Type: System.DateTime
The time at which the task’s schedule expires.

This date must be sometime after the current time, but must be 14 days or less from the current date. The default value is 14 days from the current date. Applications that use ScheduledTask must renew their schedule at least once every two weeks by calling Remove(String) and then Add(ScheduledAction) to add the task when the main application is running in the foreground. This helps to ensure that unused applications are not draining device resources.

Windows Phone OS

Supported in: 7.1

Windows Phone

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