1

如何在 EWS 会议中将正文信息添加为超链接?

// 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 有一个纯文本。我如何将其作为超链接。

4

1 回答 1

2

尝试为正文使用 HTML 片段:

appointment.Body = "The <a href="http://your.link">appointment</a> is with Dr. Smith.";
于 2013-04-15T23:56:12.043 回答