0 out of 1 rated this helpful - Rate this topic

Alarm Class

July 26, 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.

  NameDescription
Public methodAlarmInitializes a new instance of the Alarm class.
Top
  NameDescription
Public propertyBeginTimeGets or sets the time at which the action’s schedule begins. (Inherited from ScheduledAction.)
Public propertyContentGets or sets the text content of the notification that is displayed to the user when the notification is launched. (Inherited from ScheduledNotification.)
Public propertyExpirationTimeGets or sets the time at which the action’s schedule expires. (Inherited from ScheduledAction.)
Public propertyIsEnabledThis value is not used in the current release. (Inherited from ScheduledAction.)
Public propertyIsScheduledGets the scheduled status of the action. (Inherited from ScheduledAction.)
Public propertyNameGets the name of the scheduled action. (Inherited from ScheduledAction.)
Public propertyRecurrenceTypeGets or sets the recurrence type for a notification. (Inherited from ScheduledNotification.)
Public propertySoundGets or sets the sound file that plays when the Alarm is launched.
Public propertyTitleThis 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
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (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)
© 2013 Microsoft. All rights reserved.