I'm using the following code:
ClientContext ctx = new ClientContext("SiteUrl");
List lst = ctx.Web.Lists.GetByTitle("DocumentLibraryname");
CamlQuery cq = CamlQuery.CreateAllItemsQuery();
ListItemCollection lic = lst.GetItems(cq);
ctx.Load(lic, items => items.IncludeWithDefaultProperties(
item => item.DisplayName,
item => item["Description"]));
ctx.ExecuteQuery();
foreach (ListItem l in lic)
{
Console.WriteLine("title: {0}, DisplayName: {1}, Modified: {2}, Description: {3}",
l["Title"], l.DisplayName, l["Modified"], l["Description"]);
}
If I were to remove the "item => item["Description"], and l["Description"] the rest of the results would be returned. What is special about the Description field in a SharePoint document library? How can I return the contents of a Description field?
Thanks in advance.