Edit

Share via


RecurrencePattern.StartTime Property

Definition

Returns or sets a DateTime indicating the start time for a recurrence pattern. Read/write.

public:
 property DateTime StartTime { DateTime get(); void set(DateTime value); };
public DateTime StartTime { get; set; }
Public Property StartTime As DateTime

Property Value

Remarks

This property is only valid for appointments.

When you create a RecurrencePattern object and no time zones have been specified for the appointment, StartTime and EndTime of the RecurrencePattern object are based on the time zone specified by CurrentTimeZone.

If you want to create a recurring appointment for a particular time zone, you should first create an AppointmentItem, set StartTimeZone, and then call GetRecurrencePattern(). The RecurrencePattern object returned will have both StartTime and EndTime based on the time zone specified by AppointmentItem.StartTimeZone. Note that in the Appointment Recurrence dialog box, the time indicated as Start is RecurrencePattern.StartTime which is based on AppointmentItem.StartTimeZone, but the time indicated as End is not always the same as RecurrencePattern.EndTime which is based on AppointmentItem.StartTimeZone; the displayed time value is based on EndTimeZone.

Applies to