Gets all campaigns.
Namespace:
EPiServer.Community.StarViralAssembly: EPiServer.Community.StarViral (in EPiServer.Community.StarViral.dll) Version: 4.0.517.255
Syntax
| C# |
|---|
public virtual CampaignCollection GetCampaigns( EntityStatus campaignStatus, CategoryCollection categories, int page, int pageSize, out int totalItems, params CampaignSortOrder[] sortOrder ) |
Parameters
- campaignStatus
- Type: EPiServer.Common..::.EntityStatus
The publication status of the campaign
- categories
- Type: EPiServer.Common.Categories..::.CategoryCollection
The categories to receive Campaigns 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.
- totalItems
- Type:
System..::.Int32
%
The total number of items matching the input criteria
- sortOrder
- Type: array<
EPiServer.Community.StarViral..::.CampaignSortOrder
>[]()[]
The way the items should be sorted before being returned.