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.
- inventoryCatalogName
Type: System..::.String
The inventory catalog name.
- productCatalogName
Type: System..::.String
The name of the mapped product catalog.
- productId
Type: System..::.String
The product identifier.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
InventoryQuantityDeltaCollection Class