Query a List by using CAML in SharePoint
Microsoft.SharePoint.SPQuery object has Query property that accepts a CAML fragment, which defines the query to be performed. A ViewFields property defines the fields to return.Code Sample:SPQuery
query = new SPQuery;query.Viewfields
= @"";query.Query
=@"";SPList
list =...
[read more]
Submit a review:
Login required.