다음을 통해 공유


CreateListCopy Method

Creates a copy of a list. If it is a static list, it also copies all the users from the source to the destination list.

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function CreateListCopy ( _
    name As String, _
    sourceListId As Guid _
) As MailingListData
'Usage
Dim instance As MarketingWebService
Dim name As String
Dim sourceListId As Guid
Dim returnValue As MailingListData

returnValue = instance.CreateListCopy(name, _
    sourceListId)
[WebMethodAttribute]
public virtual MailingListData CreateListCopy(
    string name,
    Guid sourceListId
)
[WebMethodAttribute]
public:
virtual MailingListData^ CreateListCopy(
    String^ name, 
    Guid sourceListId
)
public function CreateListCopy(
    name : String, 
    sourceListId : Guid
) : MailingListData

Parameters

Return Value

Type: MailingListData
A MailingListData instance with the newly created list.

Exceptions

Exception Condition
NotAuthorizedException

The calling user is not authorized to perform this operation.

ServerFaultException

An unexpected error occurred on the server.

EntityDoesNotExistException

Expression List references expression that does not exist.

InvalidCatalogOperationException

Unsupported List Type.

ArgumentNullException

Either name, sourceListId or one of the required properties is nullNothingnullptra null reference (Nothing in Visual Basic).

StringLengthValidationException

One if the property values is too long or too short.

DuplicateEntityNameException

An entity with this name already exists.

DuplicateEntityIdException

An entity with this Id already exists.

EntityStateException

Trying to change the list type, or list is not available.

DatabaseIntegrityException

A serious integrity issue with the database.

Remarks

Creates a copy of a list. If it is a static list, it also copies all the users from the source to the destination list.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace