Share via


SaveMailingList Method

Insert a new MailingList (if the identifier is Guid.Empty), or updates an existing MailingList (if the identifier is not Guid.Empty).

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function SaveMailingList ( _
    list As MailingListData _
) As MailingListData
'Usage
Dim instance As MarketingWebService
Dim list As MailingListData
Dim returnValue As MailingListData

returnValue = instance.SaveMailingList(list)
[WebMethodAttribute]
public virtual MailingListData SaveMailingList(
    MailingListData list
)
[WebMethodAttribute]
public:
virtual MailingListData^ SaveMailingList(
    MailingListData^ list
)
public function SaveMailingList(
    list : MailingListData
) : MailingListData

Parameters

  • list
    Type: MailingListData
    The mailing list data to be saved (set to Guid.Empty for an insert).

Return Value

Type: MailingListData
A MailingList with the specified MailingList.

Exceptions

Exception Condition
EntityDoesNotExistException

Expression List references expression that does not exist.

InvalidCatalogOperationException

Unsupported List Type

EntityDoesNotExistException

The list being updated does not exist.

ExpressionValidationException

The ExpressionList references an Expression that is not a valid Profiles Search Expression.

ArgumentNullException

An input argument 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 list already exists.

EntityStateException

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

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Saves the specified MailingList object to the database. Inserts a new MailingList (if the identifier is zero), or updates an existing MailingList (if the identifier is not zero).

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace