Dynamicweb 8 Documentation
GetProductsAndVariantsByProduct Method
Example 

The product.
Gets the all products and variants with the same product ID and language ID as the given product.
Syntax
'Declaration
 
Public Shared Function GetProductsAndVariantsByProduct( _ 
   ByVal product As Product _ 
) As ProductCollection
public static ProductCollection GetProductsAndVariantsByProduct( 
   Product product 
)

Parameters

product
The product.
Example
class MyPage : System.Web.UI.Page
{
   public void getActiveProducts(Product product)
   {
       ProductCollection dwProds = Product.GetProductsAndVariantsByProduct(product);
       foreach (Product dwProd in dwProds)
       {
           //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