从零开始的生活是充实的!
SharePoint搞到牛叉!

在SharePoint 中没有 copy item的功能,

是有   file 是有copy 的

所以我们要复制 event 数据只能 用程序 一个一个对应着赋值。

那改怎么赋值 不会丢失数据呢 ?

如下程序可做参考 。这个 程序中 没有 “工作区”这个字段的赋值。因为在我的项目日历列表中不需要这个。

oItem["Title"] = p_item["Title"];
 oItem["Location"] = p_item["Location"];
 oItem["File_x0020_Type"] = p_item["File_x0020_Type"];
 oItem["EventType"] = p_item["EventType"];
oItem["UID"] = p_item["UID"];
 oItem["RecurrenceID"] = p_item["RecurrenceID"];
 oItem["EventCanceled"] = p_item["EventCanceled"];
 oItem["Duration"] = p_item["Duration"];
 oItem["RecurrenceData"] = p_item["RecurrenceData"];
 oItem["TimeZone"] = p_item["TimeZone"];
 oItem["XMLTZone"] = p_item["XMLTZone"];
 oItem["MasterSeriesItemID"] = p_item["MasterSeriesItemID"];
 oItem["Participants"] = p_item["Participants"];
 oItem["EventDate"] = p_item["EventDate"];
 oItem["EndDate"] = p_item["EndDate"];
oItem["Description"] = p_item["Description"];
oItem["fAllDayEvent"] = p_item["fAllDayEvent"];
 oItem["fRecurrence"] = p_item["fRecurrence"];
 oItem["ParticipantsPicker"] = p_item["ParticipantsPicker"];
 oItem["Category"] = p_item["Category"];
 oItem["FreeBusy"] = p_item["FreeBusy"];
oItem["Overbook"] = p_item["Overbook"];
 oItem["_ModerationComments"] = p_item["_ModerationComments"];
这里面 该有的都有了,才能说 event类型的item 算是完整复制了。
posted on 2012-02-15 16:03  Yunliang Yu  阅读(299)  评论(0编辑  收藏  举报