PurgeDeletedCustomers Method
Permanently removes customer records in the database that meet the specified age criteria.
Namespace: Microsoft.CommerceServer.Marketing
Assembly: Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)
Syntax
'Declaration
Public Sub PurgeDeletedCustomers ( _
daysSinceDeletion As Integer _
)
'Usage
Dim instance As DataManager
Dim daysSinceDeletion As Integer
instance.PurgeDeletedCustomers(daysSinceDeletion)
public void PurgeDeletedCustomers(
int daysSinceDeletion
)
public:
void PurgeDeletedCustomers(
int daysSinceDeletion
)
public function PurgeDeletedCustomers(
daysSinceDeletion : int
)
Parameters
- daysSinceDeletion
Type: System..::.Int32
The minimum number of days a customer record must have been deleted before it is removed from the database.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | If daysSinceDeletion is not within the range of allowed values. The minimum value allowed is 0 and the maximum allowed is the number of days between today and 1/1/1900 UTC. |
SqlException | An error occurred while accessing the database logic. |
Remarks
Purges the specified customer by deleting the records 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.