Search for pages that fulfil specific criteria

Namespace:  EPiServer
Assembly:  EPiServer (in EPiServer.dll) Version: 6.0.530.0

Syntax

C#
public PageDataCollection FindPagesWithCriteria(
	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..::.ArgumentNullException Thrown when the pageLink is NOT vaild

See Also