AddInventoryQuantityDelta Method (String, String, String, String, DateTime, Decimal)
Add an InventoryQuantityDelta to this InventoryQuantityDeltasDataSet..::.InventoryQuantityDeltasDataTable and return an InventoryQuantityDelta.
Namespace: Microsoft.CommerceServer.Inventory
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function AddInventoryQuantityDelta ( _
InventoryCatalogName As String, _
ProductCatalogName As String, _
ProductId As String, _
VariantId As String, _
DateCreated As DateTime, _
Quantity As Decimal _
) As InventoryQuantityDeltasDataSet..::.InventoryQuantityDelta
'Usage
Dim instance As InventoryQuantityDeltasDataSet..::.InventoryQuantityDeltasDataTable
Dim InventoryCatalogName As String
Dim ProductCatalogName As String
Dim ProductId As String
Dim VariantId As String
Dim DateCreated As DateTime
Dim Quantity As Decimal
Dim returnValue As InventoryQuantityDeltasDataSet..::.InventoryQuantityDelta
returnValue = instance.AddInventoryQuantityDelta(InventoryCatalogName, _
ProductCatalogName, ProductId, VariantId, _
DateCreated, Quantity)
public InventoryQuantityDeltasDataSet..::.InventoryQuantityDelta AddInventoryQuantityDelta(
string InventoryCatalogName,
string ProductCatalogName,
string ProductId,
string VariantId,
DateTime DateCreated,
decimal Quantity
)
public:
InventoryQuantityDeltasDataSet..::.InventoryQuantityDelta^ AddInventoryQuantityDelta(
String^ InventoryCatalogName,
String^ ProductCatalogName,
String^ ProductId,
String^ VariantId,
DateTime DateCreated,
Decimal Quantity
)
public function AddInventoryQuantityDelta(
InventoryCatalogName : String,
ProductCatalogName : String,
ProductId : String,
VariantId : String,
DateCreated : DateTime,
Quantity : decimal
) : InventoryQuantityDeltasDataSet..::.InventoryQuantityDelta
Parameters
- InventoryCatalogName
Type: System..::.String
The name of the Inventory Catalog.
- ProductCatalogName
Type: System..::.String
The unique identifier for the Product catalog containing the product or variant.
- ProductId
Type: System..::.String
The product identifier.
- VariantId
Type: System..::.String
The variant identifier.
- DateCreated
Type: System..::.DateTime
The date the Inventory Quantity Delta was created.
- Quantity
Type: System..::.Decimal
The decrement/increment quantity.
Return Value
Type: Microsoft.CommerceServer.Inventory..::.InventoryQuantityDeltasDataSet..::.InventoryQuantityDelta
An InventoryQuantityDeltasDataSet containing the added set.
Remarks
The InventoryQuantityDeltasDataSet object must be saved before these changes will be persisted to the database.
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
InventoryQuantityDeltasDataSet..::.InventoryQuantityDeltasDataTable Class
InventoryQuantityDeltasDataSet..::.InventoryQuantityDeltasDataTable Members