Class PromotionInformationExtensions
Extension methods for PromotionInformation.
Inheritance
Inherited Members
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
[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. |