This topic has not yet been rated - Rate this topic

Alarm Class

Windows Phone

March 22, 2012

A notification for which a custom sound can be specified.

Namespace:  Microsoft.Phone.Scheduler
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public sealed class Alarm : ScheduledNotification

The Alarm type exposes the following members.

  Name Description
Public method Alarm Initializes a new instance of the Alarm class.
Top
  Name Description
Public property BeginTime Gets or sets the time at which the action’s schedule begins. (Inherited from ScheduledAction.)
Public property Content Gets or sets the text content of the notification that is displayed to the user when the notification is launched. (Inherited from ScheduledNotification.)
Public property ExpirationTime Gets or sets the time at which the action’s schedule expires. (Inherited from ScheduledAction.)
Public property IsEnabled This value is not used in the current release. (Inherited from ScheduledAction.)
Public property IsScheduled Gets the scheduled status of the action. (Inherited from ScheduledAction.)
Public property Name Gets the name of the scheduled action. (Inherited from ScheduledAction.)
Public property RecurrenceType Gets or sets the recurrence type for a notification. (Inherited from ScheduledNotification.)
Public property Sound Gets or sets the sound file that plays when the Alarm is launched.
Public property 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.)
Top
  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Top

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.

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)