SPListItemCollection.SourceQuery property

Gets the query that retrieved the current collection of list items.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPQuery SourceQuery { get; }

Property value

Type: Microsoft.SharePoint.SPQuery
An SPQuery object that represents the query that retrieved the current collection.
Show: