Dynamicweb 8 Documentation
Groups Property (Product)
Example 

Gets or sets the collection of groups that own the product.
Syntax
'Declaration
 
Public Property Groups As GroupCollection
public GroupCollection Groups {get; set;}
Example
class MyPage : System.Web.UI.Page
{
   private Product prod;
   public void ShowGroupList()
   {
       if (prod.Groups.Count > 0)
       {
           foreach (Group g in prod.Groups)
           {
               //TODO: insert your code here
           }
       }
   }
}
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