[]
        
(Showing Draft Content)

C1.Schedule.AppointmentCollection.Add

Add Method

Add()

Creates the new Appointment object with default settings and adds it to the collection.

Declaration
public Appointment Add()
Returns
Type Description
Appointment

The Appointment object.

Add(DateTime, DateTime)

Creates the new Appointment object with specified parameters and adds it to the collection.

Declaration
public Appointment Add(DateTime start, DateTime end)
Parameters
Type Name Description
DateTime start

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

DateTime end

The DateTime value which specifies the end date and time of the appointment.

Returns
Type Description
Appointment

The Appointment object.

Add(DateTime, TimeSpan)

Creates the new Appointment object with specified parameters and adds it to the collection.

Declaration
public Appointment Add(DateTime start, TimeSpan duration)
Parameters
Type Name Description
DateTime start

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

TimeSpan duration

The TimeSpan value which specifies the duration of the appointment.

Returns
Type Description
Appointment

The Appointment object.

Add(DateTime, DateTime, string)

Creates the new Appointment object with specified parameters and adds it to the collection.

Declaration
public Appointment Add(DateTime start, DateTime end, string subject)
Parameters
Type Name Description
DateTime start

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

DateTime end

The DateTime value which specifies the end date and time of the appointment.

string subject

The string value which contains the subject of the appointment.

Returns
Type Description
Appointment

The Appointment object.

Add(DateTime, TimeSpan, string)

Creates the new Appointment object with specified parameters and adds it to the collection.

Declaration
public Appointment Add(DateTime start, TimeSpan duration, string subject)
Parameters
Type Name Description
DateTime start

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

TimeSpan duration

The TimeSpan value which specifies the duration of the appointment.

string subject

The string value which contains the subject of the appointment.

Returns
Type Description
Appointment

The Appointment object.