Class CatalogItemSelection
All valid condition and reward catalog content items for a specific promotion.
Inheritance
System.Object
CatalogItemSelection
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0Syntax
public class CatalogItemSelection : Object
Constructors
CatalogItemSelection(IEnumerable<ContentReference>, CatalogItemSelectionType, Boolean)
Creates an instance of a CatalogItemSelection.
Declaration
public CatalogItemSelection(IEnumerable<ContentReference> items, CatalogItemSelectionType type, bool includesSubcategories)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<EPiServer.Core.ContentReference> | items | The items in the selection (null or empty if |
| CatalogItemSelectionType | type | The type describing the selection. |
| System.Boolean | includesSubcategories |
|
Properties
IncludesSubcategories
Gets a value indicating whether selected items includes subcategories of the items referenced by Items.
Declaration
public bool IncludesSubcategories { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Items
The catalog content items (CatalogContent, NodeContent, and EntryContentBase) associated with the promotion.
Declaration
public IEnumerable<ContentReference> Items { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<EPiServer.Core.ContentReference> |
Type
Declaration
public CatalogItemSelectionType Type { get; }
Property Value
| Type | Description |
|---|---|
| CatalogItemSelectionType |