Search for pages that fulfil specific criteria. Will ignore access rights. If the provider is to be searchable this method needs to be overriden.

Namespace:  EPiServer.Core
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public virtual PageDataCollection FindAllPagesWithCriteria(
	PageReference pageLink,
	PropertyCriteriaCollection criterias,
	string languageBranch,
	ILanguageSelector selector
)

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
The root page for which the search will be performed
criterias
Type: EPiServer..::.PropertyCriteriaCollection
The criterias for pages
languageBranch
Type: System..::.String
Only search for pages on specific language branch
selector
Type: EPiServer.Core..::.ILanguageSelector
A language selector used to determine the language of pages to return

Return Value

A collection of pages that fulfil the criteras, will be empty if no match is found.

Exceptions

ExceptionCondition
System..::.NotImplementedException Thrown if the Page Provider indicates support for search with the Capabilities property, but does not override FindPagesWithCriteria method.
System..::.NotSupportedException Thrown if the Page Provider does not support Search functionality.

See Also