Performing List Data Querying and Manipulation
Hour 7, “Understanding SharePoint 2010 Server Side Development,” looked at how to query and manipulate data in lists using the object model—the SPList
and SPListItem
class. While this is good for a simple scenario, this is not the best way to query and edit data in lists. This section shows other better and recommended ways to do the same.
Querying List Data Using CAML
CAML (Collaborative Application Markup Language) is an XML-based query language used in conjunction with the SPQuery
and SPSiteDataQuery
classes to perform data operations on SharePoint lists. While the SPQuery
class is used to retrieve data from a specific list, the SPSiteDataQuery
class is used to retrieve data from multiple lists ...
Get Sams Teach Yourself SharePoint® 2010 Development in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.