Dynamicweb 8 Documentation
HasResults Method

Filter to estimate results for.
Append the given search query elemenet to the current search query.
Indicates whether to include the sub-query for the given filter to resulting query.
Returns value indicating whether there are any search results available for the given query.
Syntax
'Declaration
 
Public Shared Function HasResults( _ 
   ByVal filter As Filter, _ 
   ByVal criteria As Dynamicweb.Searching.Queries.SearchQueryElement, _
   ByVal includeCurrent As Boolean _ 
) As Boolean
public static bool HasResults( 
   Filter filter,
   Dynamicweb.Searching.Queries.SearchQueryElement criteria,
   bool includeCurrent 
)

Parameters

filter
Filter to estimate results for.
criteria
Append the given search query elemenet to the current search query.
includeCurrent
Indicates whether to include the sub-query for the given filter to resulting query.

Return Value

Value indicating whether there are any search results available for the given query.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FilterManager Class
FilterManager Members

Send Feedback