SPSiteDataQuery – useful class for querying multiple lists

This will be short.

This class allows you to query multiple lists with one CAML Query. For example you can fulfill folowing scenario with one query: Return all items with a specific contenttype in this sitecollection.

Here is the MSDN documentation from Microsoft.

Here  is an example how to use it

Advertisement

Tags:

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


%d bloggers like this: