开发者

WebDav: How to set Exchange 2003 appointment category?

开发者 https://www.devze.com 2022-12-16 16:51 出处:网络
I am using Independentsoft\'s WebDav API to create a calendar appointment. I would like to set the category of the appointment.

I am using Independentsoft's WebDav API to create a calendar appointment. I would like to set the category of the appointment.

In Outlook, I would set the category as indicated here: Outlook image http://www.freeimagehosting.net/uploads/b51648a90c.gif

How would I assign the category using the WebDav API?

Most other fields are simply properties of the appointment object:

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

And so on. I have not been able to fin开发者_开发技巧d a property that corresponds to category.


I have discovered the answer to this.

The property is Keywords. It's a string array.

So, to set a category, you would do this:

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

I assume you can add multiple categories in the same way:

appt.Keywords = new string[] { "CategoryName1", "CategoryName2" };
0

精彩评论

暂无评论...
验证码 换一张
取 消