Tag Info

Hot answers tagged

1

Use ListItem.DeleteObject Method to delete the document item from a Library, for example: var list = ctx.Web.Lists.GetByTitle(listTitle); var listItem = list.GetItemById(listItemId); listItem.DeleteObject(); ctx.ExecuteQuery();


1

I found a solution to the original problem that was posted here, it took me whole day struggling with xml returned by query. Solution is, In ViewFields, terminate the internal name up to 32 charachters. And then, while getting value, use the internal name terminated up to 32 chars. This is definately poorly tested code by Microsoft pushed in SP 2010. ...



Only top voted, non community-wiki answers of a minimum length are eligible