Dynamicweb.eCommerce.Products Namespace > Product Class > GetProductsByGroup Method : GetProductsByGroup(Group,String) Method |
'Declaration
Public Overloads Shared Function GetProductsByGroup( _ ByVal group As Group, _ ByVal languageID As String _ ) As ProductCollection
public static ProductCollection GetProductsByGroup( Group group, string languageID )
class MyPage : System.Web.UI.Page { public void DeleteProducts(GroupCollection groups) { if (groups.Count > 0) { //Delete products from groups ProductCollection prods = Product.GetProductsByGroup(groups); 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