摘要:
List reviewers = new List(); FieldUserValue userVal = FieldUserValue.FromUser(loginName); reviewers.Add(userVal); if (reviewers.Count > 0) item["Reviewer"] = reviewers; item.Update(); 阅读全文
摘要:
设置Lookup字段 阅读全文
摘要:
判断文件夹是否存在 阅读全文
摘要:
Upload attachment Upload file to Library 阅读全文
摘要:
NavigationNodeCollection quickluanch = null; quickluanch = web.Navigation.QuickLaunch; context.Load(quickluanch); context.ExecuteQuery(); for (int i = quickluanch.Count - 1; i >= 0; i--) { quic... 阅读全文
摘要:
List list = context.Web.Lists.GetByTitle("Test"); ListItemCollectionPosition itemPosition = null; while (true) { CamlQuery camlQuery = new CamlQuery(); camlQuery.ListItemCollectionPosition ... 阅读全文
摘要:
SP.Group group = web.SiteGroups.GetByName(siteName + " Owners"); foreach (User user in Users) { group.Users.AddUser(user); } group.Update(); context.Load(groupOwner, g => g.Id); context.Execute... 阅读全文
摘要:
List list = context.Web.Lists.GetByTitle("Test"); ViewCollection viewCollection = list.Views; ViewCreationInformation createView = new ViewCreationInformation(); Microsoft.SharePoint.Client.View v... 阅读全文
摘要:
var ctypes = listTeam.ContentTypes; context.Load(ctypes, ctys => ctys.Include(c => c.FieldLinks, c => c.Id, c => c.Name)); context.ExecuteQuery(); string GUID = ""; foreach (var item in ctypes) { ... 阅读全文
摘要:
Create List Create fields 阅读全文