Alarm Class
Windows Phone
March 22, 2012
A notification for which a custom sound can be specified.
System.Object
Microsoft.Phone.Scheduler.ScheduledAction
Microsoft.Phone.Scheduler.ScheduledNotification
Microsoft.Phone.Scheduler.Alarm
Microsoft.Phone.Scheduler.ScheduledAction
Microsoft.Phone.Scheduler.ScheduledNotification
Microsoft.Phone.Scheduler.Alarm
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
The Alarm type exposes the following members.
| Name | Description | |
|---|---|---|
|
BeginTime | Gets or sets the time at which the action’s schedule begins. (Inherited from ScheduledAction.) |
|
Content | Gets or sets the text content of the notification that is displayed to the user when the notification is launched. (Inherited from ScheduledNotification.) |
|
ExpirationTime | Gets or sets the time at which the action’s schedule expires. (Inherited from ScheduledAction.) |
|
IsEnabled | This value is not used in the current release. (Inherited from ScheduledAction.) |
|
IsScheduled | Gets the scheduled status of the action. (Inherited from ScheduledAction.) |
|
Name | Gets the name of the scheduled action. (Inherited from ScheduledAction.) |
|
RecurrenceType | Gets or sets the recurrence type for a notification. (Inherited from ScheduledNotification.) |
|
Sound | Gets or sets the sound file that plays when the Alarm is launched. |
|
Title | This property is inherited from the base ScheduledNotification class, but is not supported for alarms. The title that is displayed for all alarm notifications is “Alarm”. (Overrides ScheduledNotification.Title.) |
This class inherits from ScheduledNotification and ScheduledAction. The title displayed in the alarm dialog is always “Alarm”. To create a notification that can pass contextual information to the application that created it, use Reminder.