Class CatalogItemSelection
All valid condition and reward catalog content items for a specific promotion.
Inheritance
System.Object
CatalogItemSelection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
public class CatalogItemSelection
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 |