Jaa


Add Method (Decimal, String, 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, _
    variantId 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 variantId As String
Dim returnValue As InventoryQuantityDelta

returnValue = instance.Add(quantity, inventoryCatalogName, _
    productCatalogName, productId, variantId)
public InventoryQuantityDelta Add(
    decimal quantity,
    string inventoryCatalogName,
    string productCatalogName,
    string productId,
    string variantId
)
public:
InventoryQuantityDelta^ Add(
    Decimal quantity, 
    String^ inventoryCatalogName, 
    String^ productCatalogName, 
    String^ productId, 
    String^ variantId
)
public function Add(
    quantity : decimal, 
    inventoryCatalogName : String, 
    productCatalogName : String, 
    productId : String, 
    variantId : 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