November Happy Hour will be moved to Thursday December 5th.

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: 13.30.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.

PromotionExclusionHandler(ContentReference, ExclusionLevel)

Initializes a new instance of the PromotionExclusionHandler class.

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

The campaign rootfolder.

ExclusionLevel exclusionLevel

Indicates whether exclusions are based on entire promotions or only on single units.

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.

Remarks

For entry level promotions running with unit exclusions this method will always return false, as exclusions will then be managed later in the process.