다음을 통해 공유


CreateCopy Method

Creates a copy of an existing MailingList.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Function CreateCopy ( _
    name As String, _
    sourceList As MailingList _
) As MailingList
'Usage
Dim instance As MailingListManager
Dim name As String
Dim sourceList As MailingList
Dim returnValue As MailingList

returnValue = instance.CreateCopy(name, _
    sourceList)
public MailingList CreateCopy(
    string name,
    MailingList sourceList
)
public:
MailingList^ CreateCopy(
    String^ name, 
    MailingList^ sourceList
)
public function CreateCopy(
    name : String, 
    sourceList : MailingList
) : MailingList

Parameters

Return Value

Type: Microsoft.CommerceServer.Marketing..::.MailingList
A copy of the specified MailingList.

Exceptions

Exception Condition
ArgumentNullException

The name or mailing list parameter was nullNothingnullptra null reference (Nothing in Visual Basic).

StringLengthValidationException

name is an empty string or a string that is longer than 100 chars.

DuplicateEntityNameException

mailing list with this name already exists. Names must be unique.

Remarks

Creates copy of a mailing list. name may not be longer than 100 characters.

Permissions

See Also

Reference

MailingListManager Class

MailingListManager Members

Microsoft.CommerceServer.Marketing Namespace