Dynamicweb 8 Documentation
CurrentQuery(Boolean,Boolean) Method

Indicates whether to include query produced by the current filter.
Indicates that only currently applied filters must participate in a query building process.
Retrieves the current query to be applied to the set of documents.
Syntax
'Declaration
 
Public Overloads Function CurrentQuery( _ 
   ByVal includeCurrent As Boolean, _ 
   ByVal onlyApplied As Boolean _ 
) As Dynamicweb.Searching.Queries.SearchQueryElement
public Dynamicweb.Searching.Queries.SearchQueryElement CurrentQuery( 
   bool includeCurrent,
   bool onlyApplied 
)

Parameters

includeCurrent
Indicates whether to include query produced by the current filter.
onlyApplied
Indicates that only currently applied filters must participate in a query building process.

Return Value

Query object.
Exceptions
ExceptionDescription
System.InvalidOperationExceptionOccurs when the context is not attached to any filter.
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

FilterContext Class
FilterContext Members
Overload List

Send Feedback