Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Permanently removes campaign item 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 PurgeDeletedCampaignItems ( _
daysSinceDeletion As Integer _
)
'Usage
Dim instance As DataManager
Dim daysSinceDeletion As Integer
instance.PurgeDeletedCampaignItems(daysSinceDeletion)
public void PurgeDeletedCampaignItems(
int daysSinceDeletion
)
public:
void PurgeDeletedCampaignItems(
int daysSinceDeletion
)
public function PurgeDeletedCampaignItems(
daysSinceDeletion : int
)
Parameters
- daysSinceDeletion
Type: System..::.Int32
The minimum number of days a campaign item 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 item 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.