ContentByQueryWebPart.QueryOverride property

Gets or sets the list field name used to filter the set of list items.

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

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(False)> _
Public Property QueryOverride As String
	Get
	Set
'Usage
Dim instance As ContentByQueryWebPart
Dim value As String

value = instance.QueryOverride

instance.QueryOverride = value

Property value

Type: System.String
The list field name used to filter the set of list items.

Using this property grays out part of the tool pane that configures the query.

Show: