首页 新闻 会员 周边

Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException异常

0
悬赏园豆:5 [已解决问题] 解决于 2012-03-12 10:51

 CamlQuery query = CamlQuery.CreateAllItemsQuery();
                ClientContext context = new ClientContext("http://portaldevmoss01:10000/");
                List list = context.Web.Lists.GetByTitle("Title");
                ListItemCollection items = list.GetItems(query);
                context.Load(items);
                context.ExecuteQuery();
                foreach (ListItem item in items)
                {
                    Console.WriteLine("Item : {0}, Id : {1}", item.FieldValues["Title"], item.Id);
                }

TowerShang的主页 TowerShang | 初学一级 | 园豆:160
提问于:2012-03-06 17:06
< >
分享
最佳答案
0
收获园豆:5
2012 | 高人七级 |园豆:21230 | 2012-03-06 21:25
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册