SPListItemCollection.SourceQuery Property
Gets the query that retrieved the current collection of list items.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public ReadOnly Property SourceQuery As SPQuery
Get
'Usage
Dim instance As SPListItemCollection
Dim value As SPQuery
value = instance.SourceQuery
public SPQuery SourceQuery { get; }
Property Value
Type: Microsoft.SharePoint.SPQuery
An SPQuery object that represents the query that retrieved the current collection.