Dynamicweb.eCommerce.Products Namespace > Product Class > GetProductsByGroups Method : GetProductsByGroups(GroupCollection,String,Boolean) Method |
true
removes not used items.
'Declaration
Public Overloads Shared Function GetProductsByGroups( _ ByVal groups As GroupCollection, _ ByVal languageID As String, _ ByVal isFrontEnd As Boolean _ ) As ProductCollection
public static ProductCollection GetProductsByGroups( GroupCollection groups, string languageID, bool isFrontEnd )
true
removes not used items.class MyPage : System.Web.UI.Page { public void DeleteProducts(GroupCollection groups) { if (groups.Count > 0) { //Delete products from groups ProductCollection prods = Product.GetProductsByGroups(groups, false); Dynamicweb.eCommerce.Products.ProductDeleting.Run(prods, groups); } } }
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