Dynamicweb 8 Documentation
GetProductsByGroups(GroupCollection,String,Boolean) Method
Example 

The groups.
if set to true removes not used items.
Gets the products from groups.
Syntax
'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 
)

Parameters

groups
The groups.
languageID
isFrontEnd
if set to true removes not used items.
Example
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);
       }
   }
}
Requirements

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

See Also

Reference

Product Class
Product Members
Overload List

Send Feedback