Dynamicweb 8 Documentation
GetProductsByGroup(Group,String) Method
Example 

The group.
Gets the products from group.
Syntax
'Declaration
 
Public Overloads Shared Function GetProductsByGroup( _ 
   ByVal group As Group, _ 
   ByVal languageID As String _ 
) As ProductCollection
public static ProductCollection GetProductsByGroup( 
   Group group,
   string languageID 
)

Parameters

group
The group.
languageID
Example
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);
       }
   }
}
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