我正在使用Independentsoft's WebDav API创建日历约会。我想设置约会的类别。
在Outlook中,我将设置类别,如下所示:Outlook image http://www.freeimagehosting.net/uploads/b51648a90c.gif
如何使用WebDav接口分配类别?
大多数其他字段只是约会对象的属性:
Appointment appt = new Appointment();
appt.Body = "body";
appt.MeetingStatus = MeetingStatus.Tentative;诸若此类。我找不到与类别相对应的属性。
发布于 2010-01-16 07:03:24
我发现了这个问题的答案。
该属性是关键字。这是一个字符串数组。
因此,要设置类别,您可以执行以下操作:
appt.Keywords = new string[] { "CategoryName" };我假设你可以用同样的方式添加多个类别:
appt.Keywords = new string[] { "CategoryName1", "CategoryName2" };https://stackoverflow.com/questions/2068844
复制相似问题