Jaa


Add Method (Decimal, String, String, String)

Adds a new item to the InventoryQuantityDeltaCollection collection.

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

Syntax

'Declaration
Public Function Add ( _
    quantity As Decimal, _
    inventoryCatalogName As String, _
    productCatalogName As String, _
    productId As String _
) As InventoryQuantityDelta
'Usage
Dim instance As InventoryQuantityDeltaCollection
Dim quantity As Decimal
Dim inventoryCatalogName As String
Dim productCatalogName As String
Dim productId As String
Dim returnValue As InventoryQuantityDelta

returnValue = instance.Add(quantity, inventoryCatalogName, _
    productCatalogName, productId)
public InventoryQuantityDelta Add(
    decimal quantity,
    string inventoryCatalogName,
    string productCatalogName,
    string productId
)
public:
InventoryQuantityDelta^ Add(
    Decimal quantity, 
    String^ inventoryCatalogName, 
    String^ productCatalogName, 
    String^ productId
)
public function Add(
    quantity : decimal, 
    inventoryCatalogName : String, 
    productCatalogName : String, 
    productId : String
) : InventoryQuantityDelta

Parameters

  • quantity
    Type: System..::.Decimal
    The quantity that was decremented/incremented by the operation.

Return Value

Type: Microsoft.CommerceServer.Inventory..::.InventoryQuantityDelta
An InventoryQuantityDelta object representing the newly added item.

Remarks

Use this method to add a InventoryQuantityDelta to the InventoryQuantityDeltaCollection collection.

Permissions

See Also

Reference

InventoryQuantityDeltaCollection Class

InventoryQuantityDeltaCollection Members

Add Overload

Microsoft.CommerceServer.Inventory Namespace