ContentByQueryWebPart.FilterByContextTerm property

SharePoint 2013

Gets a Boolean value that indicates whether to filter items with the current page context term.

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

public bool FilterByContextTerm { get; set; }

Property value

Type: System.Boolean
true if filter items are to be shown with the current context term; otherwise, false.

This property only applies if the Web Part is scoped to a list that contains a Managed Metadata or Enterprise Keywords field.