Share via


RemoveUserFromList Method

Removes a single specified user from a static mailing list.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function RemoveUserFromList ( _
    listId As Guid, _
    email As String _
) As Integer
'Usage
Dim instance As MarketingWebService
Dim listId As Guid
Dim email As String
Dim returnValue As Integer

returnValue = instance.RemoveUserFromList(listId, _
    email)
[WebMethodAttribute]
public virtual int RemoveUserFromList(
    Guid listId,
    string email
)
[WebMethodAttribute]
public:
virtual int RemoveUserFromList(
    Guid listId, 
    String^ email
)
public function RemoveUserFromList(
    listId : Guid, 
    email : String
) : int

Parameters

Return Value

Type: System..::.Int32
The new size of the mailing list.

Exceptions

Exception Condition
EntityStateException

List is not available, or expression list.

EntityDoesNotExistException

The email user does not exist in the list.

DatabaseIntegrityException

A serious integrity issue with the database entity.

Remarks

Removes a single specified user from a static mailing list.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace