Back to Devexpress

AppointmentDataStorage.Add(AppointmentType, DateTime, TimeSpan) Method

windowsforms-devexpress-dot-xtrascheduler-dot-appointmentdatastorage-dot-add-x28-devexpress-dot-xtrascheduler-dot-appointmenttype-system-dot-datetime-system-dot-timespan-x29.md

latest2.2 KB
Original Source

AppointmentDataStorage.Add(AppointmentType, DateTime, TimeSpan) Method

Adds a new appointment with specific properties to this AppointmentDataStorage.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public Appointment Add(
    AppointmentType type,
    DateTime start,
    TimeSpan duration
)
vb
Public Function Add(
    type As AppointmentType,
    start As Date,
    duration As TimeSpan
) As Appointment

Parameters

NameTypeDescription
typeAppointmentType

An Appointment enumeration value that specifies the appointment type.

| | start | DateTime |

A DateTime value that specifies the start of a time interval related to the appointment.

| | duration | TimeSpan |

A TimeSpan value that specifies the duration of a time interval related to the appointment.

|

Returns

TypeDescription
Appointment

An Appointment object that is the added appointment.

|

See Also

AppointmentDataStorage Class

AppointmentDataStorage Members

DevExpress.XtraScheduler Namespace