Dynamicweb 8 Documentation
CurrentQuery(Boolean,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.
Value indicating whether to cache the results of the method for the current HTTP request.
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, _ 
   ByVal cache As Boolean _ 
) As Dynamicweb.Searching.Queries.SearchQueryElement
public Dynamicweb.Searching.Queries.SearchQueryElement CurrentQuery( 
   bool includeCurrent,
   bool onlyApplied,
   bool cache 
)

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.
cache
Value indicating whether to cache the results of the method for the current HTTP request.

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