3

我正在使用Independentsoft 的 WebDav API创建日历约会。我想设置约会的类别。

在 Outlook 中,我会设置如下所示的类别: Outlook 图像 http://www.freeimagehosting.net/uploads/b51648a90c.gif

如何使用 WebDav API 分配类别?

大多数其他字段只是约会对象的属性:

Appointment appt = new Appointment();
appt.Body = "body";
appt.MeetingStatus = MeetingStatus.Tentative;

等等。我一直无法找到与类别相对应的属性。

4

1 回答 1

3

我已经找到了答案。

该属性是关键字。这是一个字符串数组。

所以,要设置一个类别,你可以这样做:

appt.Keywords = new string[] { "CategoryName" };

我假设您可以以相同的方式添加多个类别:

appt.Keywords = new string[] { "CategoryName1", "CategoryName2" };
于 2010-01-15T23:03:23.537 回答