Thursday, September 26, 2013

how to print Sharepoint List data on console window

For that, you will have to create a separate entity(class) say UserItem and have Name, Title, Address and AssignTo as properties of that entity. You will have to create object of this entity say objUserItem, store the values and then access them as Console.WriteLine(String.Format("{0},{1},{2},{3}", objUserItem.Name,objUserItem.Title,objUserItem.Address,objUserItem.AssignTo))

No comments:

Post a Comment