You are here: Ektron Namespace > Providers API > Ektron.Cms.Commerce.Inventory Namespace > Ektron.Cms.Commerce.Inventory.Provider Namespace > InventoryProvider Class > InventoryProvider Methods > GetUnitsInStock
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
InventoryProvider.GetUnitsInStock Method

Gets the number of units in stock for a given catalog entry's ID. Use this method when you only want to return the number of units in stock for a specified item. If you want additional inventory information about an item, use the GetInventory method. Below is example code that returns the number of units in stock for an item with an ID of 12.

inventory.GetUnitsInStock(12);
C#
public virtual int GetUnitsInStock(long entryId);
Visual Basic
Public virtual Function GetUnitsInStock(entryId As long) As Integer
Parameters 
Description 
entryId 
Enter the ID for a catalog entry (product). 

Returns the number of units in stock for a given catalog entry's ID.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!