InventoryContext Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets an instance of the InventoryContext class if the InventorySystemExists property returns true.

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

public InventoryContext InventoryContext { get; }

Property Value

Type: Microsoft.CommerceServer.Inventory..::.InventoryContext
An instance of the InventoryContext class.

ExceptionCondition
InvalidCatalogOperationException

No inventory system exists for the site. An error occurs when the InventorySystemExists is set to false.

This property will return an instance of the InventoryContext class if inventory integration is enabled for the site. The returned instance can be used to perform various operations in the inventory system. If there is no inventory system for the site, a InvalidCatalogOperationException is thrown.

Show: