首页 > 代码库 > c#学习笔记-0520 (SharePointAPI)

c#学习笔记-0520 (SharePointAPI)

根据SPContentType新建Item

Item01["ContentTypeId"] = LinkCT.Id;
Item01.Update();

 

取SharePoint Build-In ContentType或者Column

SPContentType LinkCT = web.ContentTypes[SPBuiltInContentTypeId.Link];

SPField Field = web.Fields[SPBuildInFieldId.Modify];