Dynamicweb.eCommerce.Prices Namespace > Price Class > Delete Method : Delete(ProductCollection,Boolean) Method |
true
to delete.
'Declaration
Public Overloads Function Delete( _ ByVal products As ProductCollection, _ ByVal run As Boolean _ ) As String
public string Delete( ProductCollection products, bool run )
true
to delete.class MyPage : System.Web.UI.Page { public void DoDelete() { Product prod = new Product(); prod = (Product)Session["Ecom.Backend.Product"]; Dynamicweb.eCommerce.Prices.Price prs = new Dynamicweb.eCommerce.Prices.Price(); prs.Delete(Product.getActiveProducts(), true); } }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2