  | Discount Constructor (Product, IProductDiscount, SalesDiscount) | 
 Note: This API is now obsolete.
Initializes a new instance of the 
Discount class
 
    Namespace: 
   Dynamicweb.Ecommerce.Discounts
    Assembly:
   Dynamicweb.Ecommerce (in Dynamicweb.Ecommerce.dll) Version: 1.12.0
Syntax[ObsoleteAttribute("Use constructor overload with currency, country, unit id, user id, shop id parameters.")]
public Discount(
	ref Product product,
	ref IProductDiscount productDiscount,
	ref SalesDiscount salesDiscount
)<ObsoleteAttribute("Use constructor overload with currency, country, unit id, user id, shop id parameters.")>
Public Sub New ( 
	ByRef product As Product,
	ByRef productDiscount As IProductDiscount,
	ByRef salesDiscount As SalesDiscount
)Parameters
- product
 - Type: Dynamicweb.Ecommerce.ProductsProduct
 - productDiscount
 - Type: Dynamicweb.Ecommerce.Orders.SalesDiscountsIProductDiscount
 - salesDiscount
 - Type: Dynamicweb.Ecommerce.Orders.SalesDiscountsSalesDiscount
 
See Also