Appointment.withAttachment constructor

Appointment.withAttachment(
  1. ItemAttachment parentAttachment,
  2. bool isNew
)
Initializes a new instance of Appointment. Parent attachment. If true, attachment is new.

Implementation

Appointment.withAttachment(ItemAttachment parentAttachment, bool isNew)
    : super.withAttachment(parentAttachment) {
  // If we're running against Exchange 2007, we need to explicitly preset
  // the StartTimeZone property since Exchange 2007 will otherwise scope
  // start and end to UTC.
  if (parentAttachment.Service.RequestedServerVersion ==
      ExchangeVersion.Exchange2007_SP1) {
    if (isNew) {
      // TODO : repair time zone
//                    this.StartTimeZone = parentAttachment.Service.TimeZone;
    }
  }
}