Dynamicweb 8 Documentation
AddRelatedProduct Method

Adds a related product to this product and saves it to the database.
Syntax
'Declaration
 
Public Sub AddRelatedProduct( _ 
   ByVal product As Product, _ 
   ByVal relatedProductGroup As ProductRelatedGroup _ 
) 
public void AddRelatedProduct( 
   Product product,
   ProductRelatedGroup relatedProductGroup 
)

Parameters

product
relatedProductGroup
Exceptions
ExceptionDescription
System.ArgumentExceptionIf this instance is not saved first.
System.ArgumentExceptionIf the related product is not saved first.
System.ArgumentExceptionIf the relation group is not saved first.
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