FieldCollection describes the layout of list items . You need to load the actual list items in order to access their values!
Check out this detailed walkthrough on MSDN for more information on SharePoint and the client object model: http://msdn.microsoft.com/en-us/library/ee857094.aspx#SP2010ClientOM_The_Managed_Client_Object_Model
So, in this case, the following sample code on the above MSDN page illustrates this:
using System; using Microsoft.SharePoint.Client; class Program { static void Main() { ClientContext clientContext = new ClientContext("http://intranet.contoso.com"); List list = clientContext.Web.Lists.GetByTitle("Announcements"); CamlQuery camlQuery = new CamlQuery(); camlQuery.ViewXml = "<View/>"; ListItemCollection listItems = list.GetItems(camlQuery); clientContext.Load(list);clientContext.Load(listItems); clientContext.ExecuteQuery(); foreach (ListItem listItem in listItems) Console.WriteLine("Id: {0} Title: {1}", listItem.Id, oListItem["Title"]); } }
In particular, the value of the registered list item is obtained as follows:
string itemTitle = oListItem["Title"];
It uses .NET index syntax.
source share