PeriodicTask Constructor
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the PeriodicTask class.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Parameters
- name
- Type: System.String
The name of the periodic task.
| Exception | Condition |
|---|---|
| ArgumentNullException | The name string cannot be null. |
| ArgumentOutOfRangeException | The name string cannot be zero length. The maximum length of the content string is 63 characters. The string can contain only printable ASCII characters (character values between 32 and 126). |
Caution: |
|---|
For Scheduled Tasks, the Description property is required and must be set prior to calling Add(ScheduledAction) or an exception will be thrown. |
The maximum length of the name string is 63 characters. The string can contain only printable ASCII characters (character values between 32 and 126).
Caution: