Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Messaging Namespace / EmailTemplate Class / Copy Method
The id of the item to copy.
If true, all related child data for this item is copied. If false, only the base item is copied.
In This Topic
    Copy Method (EmailTemplate)
    In This Topic
    Generates a copy of the indicated item.
    Syntax
    public static EmailTemplate Copy( 
       int emailTemplateId,
       bool deepCopy
    )

    Parameters

    emailTemplateId
    The id of the item to copy.
    deepCopy
    If true, all related child data for this item is copied. If false, only the base item is copied.

    Return Value

    A copy of the item
    Remarks
    The returned copy has not been persisted to the database, you must call Save method to persist the new item.
    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