Gets a collection of Contests for categories specified.

Namespace:  EPiServer.Community.Contest.Data
Assembly:  EPiServer.Community.Contest (in EPiServer.Community.Contest.dll) Version: 4.0.517.255

Syntax

C#
protected internal virtual PagedCollectionResultSet GetContests(
	EntityStatus status,
	CategoryCollection categories,
	int page,
	int pageSize,
	params ContestSortOrder[] sortOrder
)

Parameters

status
Type: EPiServer.Common..::.EntityStatus
A set of EntityStatus by which to filter the returned Contests.
categories
Type: EPiServer.Common.Categories..::.CategoryCollection
The categories to receive Contests from, if null all available categories will be included, if passed as an empty collection no categories will be included.
page
Type: System..::.Int32
The page of the record to display. The first page is 1.
pageSize
Type: System..::.Int32
The desired page size of the returned record. This is the maximum number of items that will be returned.
sortOrder
Type: array< EPiServer.Community.Contest..::.ContestSortOrder >[]()[]
The way the items should be sorted before being returned.

Return Value

A PagedCollectionResultSet.

See Also