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

Class PromotionInformationExtensions

Extension methods for PromotionInformation.

Inheritance
System.Object
PromotionInformationExtensions
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: 12.17.2
Syntax
[CLSCompliant(false)]
public static class PromotionInformationExtensions

Methods

GetPromotion(PromotionInformation)

Gets the promotion related to a PromotionInformation.

Declaration
[Obsolete("This method is no longer used. Will remain at least until December 2019.")]
public static PromotionData GetPromotion(this PromotionInformation information)
Parameters
Type Name Description
PromotionInformation information

The related PromotionInformation referring to the promotion.

Returns
Type Description
PromotionData

The promotion that is related to the PromotionInformation.

GetPromotion(PromotionInformation, IContentLoader)

Gets the promotion related to a PromotionInformation.

Declaration
[Obsolete("This method is no longer used. Will remain at least until December 2019.")]
public static PromotionData GetPromotion(this PromotionInformation information, IContentLoader loader)
Parameters
Type Name Description
PromotionInformation information

The related PromotionInformation referring to the promotion.

EPiServer.IContentLoader loader

An EPiServer.IContentLoader for loading the promotion.

Returns
Type Description
PromotionData

The promotion that is related to the PromotionInformation.

GetPromotion<T>(PromotionInformation)

Gets the promotion related to a PromotionInformation.

Declaration
[Obsolete("This method is no longer used. Will remain at least until December 2019.")]
public static T GetPromotion<T>(this PromotionInformation information)
    where T : PromotionData
Parameters
Type Name Description
PromotionInformation information

The related PromotionInformation referring to the promotion.

Returns
Type Description
T

The promotion that is related to the PromotionInformation.

Type Parameters
Name Description
T

The type of PromotionData the promotion is expected to be.

GetPromotion<T>(PromotionInformation, IContentLoader)

Gets the promotion related to a PromotionInformation.

Declaration
[Obsolete("This method is no longer used. Will remain at least until December 2019.")]
public static T GetPromotion<T>(this PromotionInformation information, IContentLoader loader)
    where T : PromotionData
Parameters
Type Name Description
PromotionInformation information

The related PromotionInformation referring to the promotion.

EPiServer.IContentLoader loader

An EPiServer.IContentLoader for loading the promotion.

Returns
Type Description
T

The promotion that is related to the PromotionInformation.

Type Parameters
Name Description
T

The type of PromotionData the promotion is expected to be.