ComponentOne BarChart for ASP.NET WebForms
C1.Web.Wijmo.Controls.45 Assembly / C1.C1Schedule Namespace / AppointmentCollection Class / Add Method / Add(DateTime,TimeSpan) Method
The System.DateTime value which specifies the start date and time of the appointment.
The System.TimeSpan value which specifies the duration of the appointment.

In This Topic
    Add(DateTime,TimeSpan) Method
    In This Topic
    Creates the new Appointment object with specified parameters and adds it to the collection.
    Syntax
    'Declaration
     
    Public Overloads Function Add( _
       ByVal start As System.Date, _
       ByVal duration As System.TimeSpan _
    ) As Appointment
    public Appointment Add( 
       System.DateTime start,
       System.TimeSpan duration
    )

    Parameters

    start
    The System.DateTime value which specifies the start date and time of the appointment.
    duration
    The System.TimeSpan value which specifies the duration of the appointment.

    Return Value

    The Appointment object.
    See Also