Class PromotionExclusionHandler

Keeps track of promotion exclusion.

Inheritance
System.Object
PromotionExclusionHandler
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.0
Syntax
public class PromotionExclusionHandler

Constructors

PromotionExclusionHandler(ContentReference)

Initializes a new instance of the PromotionExclusionHandler class.

Declaration
public PromotionExclusionHandler(ContentReference campaignRootfolder)
Parameters
Type Name Description
EPiServer.Core.ContentReference campaignRootfolder

The campaign rootfolder.

Methods

AddAppliedPromotion(PromotionData)

registers any excluded promotions for the specified promotion.

Declaration
public void AddAppliedPromotion(PromotionData promotion)
Parameters
Type Name Description
PromotionData promotion

The promotion.

IsExcluded(PromotionData)

Determines whether the specified promotion is excluded.

Declaration
public bool IsExcluded(PromotionData promotion)
Parameters
Type Name Description
PromotionData promotion

The promotion.

Returns
Type Description
System.Boolean

true if promotion is excluded, false otherwise.