Share via


PurgeCompletedOperations Method (DateTime)

Purges all the import, export and rebuild operations completed before specified date.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Sub PurgeCompletedOperations ( _
    completedBefore As DateTime _
)
'Usage
Dim instance As CatalogContext
Dim completedBefore As DateTime

instance.PurgeCompletedOperations(completedBefore)
public void PurgeCompletedOperations(
    DateTime completedBefore
)
public:
void PurgeCompletedOperations(
    DateTime completedBefore
)
public function PurgeCompletedOperations(
    completedBefore : DateTime
)

Parameters

  • completedBefore
    Type: System..::.DateTime
    Date/Time to specify filter to purge completed items. Only items older than this will be purged.

Remarks

All properties associated with the completed operations that were completed before the completedBefore date are deleted from the system. This method is called for maintenance purposes; to remove the records of items that were completed prior to the completedBefore date, to prevent the database from filling indefinitely.

Permissions

See Also

Reference

CatalogContext Class

CatalogContext Members

PurgeCompletedOperations Overload

Microsoft.CommerceServer.Catalog Namespace