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

Namespace:  C1.C1Schedule
Assembly:  C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)

Syntax

C#
public Appointment Add(
	DateTime start,
	DateTime end,
	string subject
)
Visual Basic
Public Function Add ( _
	start As DateTime, _
	end As DateTime, _
	subject As String _
) As Appointment

Parameters

start
Type: System..::..DateTime
The DateTime value which specifies the start date and time of the appointment.
end
Type: System..::..DateTime
The DateTime value which specifies the end date and time of the appointment.
subject
Type: System..::..String
The String value which contains the subject of the appointment.

Return Value

The Appointment object.

See Also