[]
Gets or sets the TimeSpan value indicating the duration of the appointment.
public TimeSpan Duration { get; set; }
Public Property Duration As TimeSpan
At setting this property, if it's value is not equal to the whole number of days, the AllDayEvent property will be set to false.