Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / KitComponent Class / Copy Method / Copy(Int32) Method
Id of the product to attach the new object to
In This Topic
    Copy(Int32) Method
    In This Topic
    Creates a copy of this KitComponent object and attaches it to a product
    Syntax
    [Obsolete("This method forces persistence.  Instead use KitComponent.Copy(bool deepCopy) method to create the copy then attach to a product via calling code.")]
    public virtual KitComponent Copy( 
       int productId
    )

    Parameters

    productId
    Id of the product to attach the new object to

    Return Value

    A copy of this KitComponent object
    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