Jaa


Purge Method (DateTime)

Purges all the items which were deleted before the specified date. This includes deleted inventory catalogs. deleted product catalog mappings and deleted inventory SKUs.

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

Syntax

'Declaration
Public Sub Purge ( _
    purgeBeforeDate As DateTime _
)
'Usage
Dim instance As InventoryContext
Dim purgeBeforeDate As DateTime

instance.Purge(purgeBeforeDate)
public void Purge(
    DateTime purgeBeforeDate
)
public:
void Purge(
    DateTime purgeBeforeDate
)
public function Purge(
    purgeBeforeDate : DateTime
)

Parameters

  • purgeBeforeDate
    Type: System..::.DateTime
    Physically delete all the records deleted before this date.

Remarks

Purges inventory information. Use this method to remove deleted records from the catalog. If purgeBeforeDate is not specified all records are purged.

When items are deleted from a catalog they are not removed from the Product Catalog System. The product rows are moved from the catalog tables to a deleted products table. Use the Purge method to remove the marked products from the database.

Permissions

See Also

Reference

InventoryContext Class

InventoryContext Members

Purge Overload

Microsoft.CommerceServer.Inventory Namespace