01 2012 档案
Linq to SharePoint中一个列表包含多个Content Type问题
摘要:在Parameters.xml文件中指定包含的内容类型:<List Name="SingleProblem" Member="SingleItems"> <ContentType Name="项目" class="SingleItem"/> <ContentType Name="TestCT" class="TestItem"/> </List>在内容类型XML中添加字段ContentType:<Column Name=& 阅读全文
posted @ 2012-01-30 22:57 欣静赏悦 阅读(241) 评论(0) 推荐(0)
Update list item using Linq to SharePoint
摘要:1. Update// Set the property to a new value.foreach (TeamMember teamMember in teamSite.TeamMembers){ teamMember.TopTask = "Fiscal Planning";}// Write changes to the content database.teamSite.SubmitChanges();2.Resolve Conflictforeach (TeamMember teamMember in teamSite.TeamMembers){ teamMemb 阅读全文
posted @ 2012-01-12 14:47 欣静赏悦 阅读(271) 评论(0) 推荐(0)
TroubleShoot:个人主页上的ActivityFeed WebPart 错误。
摘要:修改个人网站主页后,会出现SocialProfileService不能为空的错误,只要找到该Webpart,然后删除这个属性就可以了 。 阅读全文
posted @ 2012-01-09 17:17 欣静赏悦 阅读(190) 评论(0) 推荐(0)
TroubleShoot:分配对象查询的问题
摘要:一、问题:在使用SPQuery的时候,CAML查询分配对象是当前帐号的时候,查不出来与自己相关的。相关CAML如下:string caml = "<Where><Eq>";caml += "<FieldRef Name='AssignedTo' LookupId='True'/>";caml += "<Value Type='User'>" + SPContext.Current.Web.CurrentUser.ID + "< 阅读全文
posted @ 2012-01-09 16:55 欣静赏悦 阅读(172) 评论(0) 推荐(0)
ADHelper,一个好用的AD操作类
摘要:public class ADHelper { private static string ADLdapInfo = System.Configuration.ConfigurationManager.AppSettings["ADLdapInfo"].ToString(); ///扮演类实例 private static IdentityImpersonation impersonate; //private static DirectoryEntry GetDirectoryObject() //{ // DirectoryEntry entry = null; // 阅读全文
posted @ 2012-01-06 14:50 欣静赏悦 阅读(443) 评论(0) 推荐(0)