Skip to main content

ReminderBase.Snooze(DateTime, TimeSpan) Method

Notifies the scheduler to defer the triggering of a reminder by the specified interval starting from the specified now date and time.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.Core.dll

NuGet Package: DevExpress.Scheduler.Core

Declaration

public bool Snooze(
    DateTime now,
    TimeSpan remindAfter
)

Parameters

Name Type Description
now DateTime

A DateTime value which represents the date and time from which the snooze time interval will be counted.

remindAfter TimeSpan

A TimeSpan value which represents the time interval by which the scheduler should delay the triggering of a reminder.

Returns

Type Description
Boolean

true if a reminder alert has been successfully snoozed; otherwise, false.

Remarks

The Snooze method defers the reminder’s alert time by the time interval specified. The time of the alert can be obtained via the ReminderBase.AlertTime property.

Note

Use this method when it’s required to snooze several reminders for the same time interval starting from the same now date and time.

If an appointment occurs in the past, then the following behavior is implemented: If an outdated appointment is of AppointmentType.Normal type, then AlertTime=Now+Snooze. If it is a member of a recurring appointment series, then the current valid appointment in a chain will hold the reminder.

See Also