Version

Duration Property (AppointmentVariance)

Returns or sets the time duration of the Activity.
Syntax
'Declaration
 
Public Overrides Property Duration As TimeSpan
public override TimeSpan Duration {get; set;}

Property Value

Returns a System.TimeSpan used as end time for the Activity.
Remarks

Note: The Duration property cannot be set on an Activity that is a RecurringAppointmentRoot for other Activities; doing so will cause an exception to be thrown.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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

See Also