C1.C1Schedule Namespace > Appointment Class : End Property |
'Declaration
Public Property End As System.Date
public System.DateTime End {get; set;}
The Appointment.End property is usually specified by the Appointment.Start and Appointment.Duration properties, and is always calculated as Appointment.End = Appointment.Start + Appointment.Duration. When setting the Appointment.End property, the Appointment.Start property retains its value, and the Appointment.Duration is changed according to the new value of the Appointment.End property. If the new Appointment.End property's value is less than the Appointment.Start property's value, then an exception will be raised.
At setting this property, if it's time is not equal 0:00, or value is equal to the value of Appointment.Start property, the Appointment.AllDayEvent property will be set to false.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2