Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Reporting Namespace / ProductInventoryDataSource Class / GetProductInventory Method / GetProductInventory(Int32,String) Method
The given inventory level
The sort expression to use for sorting the loaded objects.
In This Topic
    GetProductInventory(Int32,String) Method
    In This Topic
    Get all inventory items that are at or below the given inventory level.
    Syntax
    [DataObjectMethod(DataObjectMethodType.Select)]
    public static IList<ProductInventoryDetail> GetProductInventory( 
       int maxInStock,
       string sortExpression
    )

    Parameters

    maxInStock
    The given inventory level
    sortExpression
    The sort expression to use for sorting the loaded objects.

    Return Value

    A list of all inventory items that are at or below the given inventory level.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also