[]
        
(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()
Public Function Add() As Appointment
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)
Public Function Add(start As Date, [end] As Date) As Appointment
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)
Public Function Add(start As Date, duration As TimeSpan) As Appointment
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)
Public Function Add(start As Date, [end] As Date, subject As String) As Appointment
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)
Public Function Add(start As Date, duration As TimeSpan, subject As String) As Appointment
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.