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
- listId
Type: System..::.Guid
The list identifier.
- email
Type: System..::.String
The e-mail address of the user to remove.
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
- 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.