Dynamicweb 8 Documentation
CopyAsVariant Method
Example 

The variant ID.
Copies this instance and saves it in the DB.
Syntax
'Declaration
 
Public Function CopyAsVariant( _ 
   ByVal variantID As String _ 
) As Product
public Product CopyAsVariant( 
   string variantID 
)

Parameters

variantID
The variant ID.
Example
class MyPage : System.Web.UI.Page
{
   private Product product;
   public Product DoSave()
   {
       Product p = new Product();
       p = product.CopyAsVariant(product.VariantID);
       return p;
   }
}
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