Partager via


PurgeDeletedCampaigns Method

Permanently removes campaign 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 PurgeDeletedCampaigns ( _
    daysSinceDeletion As Integer _
)
'Usage
Dim instance As DataManager
Dim daysSinceDeletion As Integer

instance.PurgeDeletedCampaigns(daysSinceDeletion)
public void PurgeDeletedCampaigns(
    int daysSinceDeletion
)
public:
void PurgeDeletedCampaigns(
    int daysSinceDeletion
)
public function PurgeDeletedCampaigns(
    daysSinceDeletion : int
)

Parameters

  • daysSinceDeletion
    Type: System..::.Int32
    The minimum number of days a campaign record must have been deleted before it is removed from the database.

Exceptions

Exception Condition
ArgumentOutOfRangeException

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 campaign by deleting the records from the database.

Permissions

See Also

Reference

DataManager Class

DataManager Members

Microsoft.CommerceServer.Marketing Namespace