DeleteCustomer Method
Deletes an existing Customer.
Namespace: Microsoft.CommerceServer.Marketing.WebService
Assembly: Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Overridable Sub DeleteCustomer ( _
customerId As Integer _
)
'Usage
Dim instance As MarketingWebService
Dim customerId As Integer
instance.DeleteCustomer(customerId)
[WebMethodAttribute]
public virtual void DeleteCustomer(
int customerId
)
[WebMethodAttribute]
public:
virtual void DeleteCustomer(
int customerId
)
public function DeleteCustomer(
customerId : int
)
Parameters
- customerId
Type: System..::.Int32
The identifier of the customer to be deleted.
Exceptions
Exception | Condition |
---|---|
NotAuthorizedException | The user is not authorized to perform the requested operation. |
ArgumentOutOfRangeException | The customerId is less than zero. |
EntityHasChildrenException | The entity has children. |
EntityStateException | The entity is in an invalid state (may already be deleted). |
EntityDoesNotExistException | No customer exists with this customerId. |
DatabaseIntegrityException | An integrity issue with the database. |
Remarks
Deletes an existing Customer. Deleting a Customer does not actually remove the customer record from the database. These records are not permanently removed until they are purged from the database.
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.