Dynamicweb 8 Documentation
RemoveGroup Method
Example 

Removes the group from the products Groups collection. Also deletes the ProductGroupRelation from the database if group.ID exists.
Syntax
'Declaration
 
Public Sub RemoveGroup( _ 
   ByVal group As Group _ 
) 
public void RemoveGroup( 
   Group group 
)

Parameters

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