sharepoint项目。从列表中检索项目
示例
ClientContext clientContext = new ClientContext(siteUrl);
SP.List oList = clientContext.Web.Lists.GetByTitle("Announcements");
CamlQuery camlQuery = new CamlQuery();
camlQuery.ViewXml = "<View><Query><Where><Geq><FieldRef Name='ID'/>" +
"<Value Type='Number'>10</Value></Geq></Where></Query><RowLimit>100</RowLimit></View>";
ListItemCollection collListItem = oList.GetItems(camlQuery);
clientContext.Load(collListItem);
clientContext.ExecuteQuery();
foreach (ListItem oListItem in collListItem)
{
Console.WriteLine("ID: {0} \nTitle: {1} \nBody: {2}", oListItem.Id, oListItem["Title"], oListItem["Body"]);
}
热门推荐
10 简短56岁生日祝福语
11 长辈钻石婚祝福语简短
12 职场祝福语大全 简短精辟
13 初六开工祝福语简短
14 女朋友考试祝福语简短
15 20岁简短生日祝福语
16 祝寿时祝福语简短精辟
17 节日祝福语幽默简短的
18 生日祝福语大全女孩简短