Search for pages that fulfil specific criteria

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

Syntax

C#
[ObsoleteAttribute("Use overload without access parameter. Access rights are ignored.", 
	false)]
public PageDataCollection FindPagesWithCriteria(
	PageReference pageLink,
	PropertyCriteriaCollection criterias,
	string languageBranch,
	ILanguageSelector selector,
	AccessLevel requiredAccess
)

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
requiredAccess
Type: EPiServer.Security..::.AccessLevel
The required access for the found pages

Return Value

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

See Also