Dynamicweb 8 Documentation
AddGroup Method
Example 

Adds the group to the products Groups collection. Also creates the ProductGroupRelation in the database if it does not already exist and group.ID is exists.
Syntax
'Declaration
 
Public Sub AddGroup( _ 
   ByVal group As Group _ 
) 
public void AddGroup( 
   Group group 
)

Parameters

group
Example
class MyPage : System.Web.UI.Page
{
   private Product product;
   public string AddGroups(GroupCollection gc)
   {
       foreach(Group g in gc)
       {
           product.AddGroup(g);
       }
   }
}
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

Send Feedback