Creates the new Appointment object
with specified parameters and adds it to the collection.
Namespace:
C1.C1ScheduleAssembly: C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)
Syntax
C# |
---|
public Appointment Add( DateTime start, TimeSpan duration ) |
Visual Basic |
---|
Public Function Add ( _ start As DateTime, _ duration As TimeSpan _ ) As Appointment |
Parameters
- start
- Type: System..::..DateTime
The DateTime value which specifies the start date and time of the appointment.
- duration
- Type: System..::..TimeSpan
The TimeSpan value which specifies the duration of the appointment.