2013-04-15 63 views
1

如何在EWS會議中將身體信息添加爲超鏈接?如何使用EWS將會議主體中的超鏈接添加到c#中?

// Create the appointment. 
Appointment appointment = new Appointment(service); 

// Set properties on the appointment. 
appointment.Subject = "Dentist Appointment"; 
appointment.Body = "The appointment is with Dr. Smith."; 
appointment.Start = new DateTime(2009, 3, 1, 9, 0, 0); 
appointment.End = appointment.Start.AddHours(2); 

// Save the appointment. 
appointment.Save(SendInvitationsMode.SendToNone); 

上面的代碼是創建約會。 Appointment.Body具有純文本。我如何使它成爲一個超鏈接。

回答

2

嘗試使用HTML片段供體:

appointment.Body = "The <a href="http://your.link">appointment</a> is with Dr. Smith."; 
+0

感謝的人說的工作。我還沒有嘗試這個簡單的事情:) – PaRsH

相關問題