Class PageCriteriaQueryServiceExtensions
Extends IPage
Inheritance
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public static class PageCriteriaQueryServiceExtensions
Methods
FindPagesWithCriteria(IPageCriteriaQueryService, PageReference, PropertyCriteriaCollection)
Search for pages that fulfil a specific criterias
Declaration
public static PageDataCollection FindPagesWithCriteria(this IPageCriteriaQueryService queryService, PageReference pageLink, PropertyCriteriaCollection criterias)
Parameters
Type | Name | Description |
---|---|---|
IPage |
queryService | The IPage |
Page |
pageLink | The root page for which the search will be performed |
Property |
criterias | The criterias for pages |
Returns
Type | Description |
---|---|
Page |
A collection of pages that fulfil the criteras, will be empty if no match is found. |
FindPagesWithCriteria(IPageCriteriaQueryService, PageReference, PropertyCriteriaCollection, String)
Search for pages that fulfil a specific criterias
Declaration
public static PageDataCollection FindPagesWithCriteria(this IPageCriteriaQueryService queryService, PageReference pageLink, PropertyCriteriaCollection criterias, string languageBranch)
Parameters
Type | Name | Description |
---|---|---|
IPage |
queryService | The IPage |
Page |
pageLink | The root page for which the search will be performed |
Property |
criterias | The criterias for pages |
System. |
languageBranch | Only search for pages on specific language branch |
Returns
Type | Description |
---|---|
Page |
A collection of pages that fulfil the criteras, will be empty if no match is found. |