2010-10-06 100 views
4

我用下面的代碼保存通過Exchange Web服務託管API預約:當我做這個任命是爲Outlook中的「會議」創建交易所預約類型

Appointment appointment = new Appointment(m_exchangeService); 
appointment.Subject = subject; 
appointment.Body = body; 
appointment.Start = start; 
appointment.End = end; 
appointment.Save(); 

。但我只是想把它作爲正常的約會而不是開會。 我該怎麼做?

回答

4

我找到了答案。以下代碼創建了一個非常規非會議

appointment.Save(WellKnownFolderName.Calendar, SendInvitationsMode.SendToNone);