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)

Syntax

'Declaration
Public ReadOnly Property InventoryContext As InventoryContext
'Usage
Dim instance As CatalogContext
Dim value As InventoryContext

value = instance.InventoryContext
public InventoryContext InventoryContext { get; }
public:
property InventoryContext^ InventoryContext {
    InventoryContext^ get ();
}
public function get InventoryContext () : InventoryContext

Property Value

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

Exceptions

Exception Condition
InvalidCatalogOperationException

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

Remarks

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.

Permissions

See Also

Reference

CatalogContext Class

CatalogContext Members

Microsoft.CommerceServer.Catalog Namespace