I am trying to pull back just specific columns in a list using the .NET client object model. (i.e. using Microsoft.SharePoint.Client;
)
This is the CamlQuery specifying just fields in the DefaultView ViewFields
for the list
<View>
<ViewFields>
<FieldRef Name="LinkTitle" />
<FieldRef Name="FoodName" />
</ViewFields>
</View>
However, when I run the query using:
CamlQuery camlQuery = new CamlQuery();
camlQuery.ViewXml = "<View><ViewFields><FieldRef Name="LinkTitle" /><FieldRef Name="FoodName" /></ViewFields></View>";
ListItemCollection items = list.GetItems(camlQuery);
clientContext.Load(items);
clientContext.ExecuteQuery();
then each item's FieldValues
has the following keys (columns) pulled back:
- FoodName
- MetaInfo
- _ModerationStatus
- _Level
- ID
- UniqueId
- owshiddenversion
- FSObjType
- Created_x0020_Date
- Created
- Title
- FileLeafRef
- Modified
- FileRef
Why is SharePoint pulling back these additional field values?