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
- name
Type: System..::.String
The name given to the new mailing list.
- sourceList
Type: Microsoft.CommerceServer.Marketing..::.MailingList
The MailingList to copy.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.