AddSku Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Adds a new item to the InventorySkuCollection collection.
Namespace: Microsoft.CommerceServer.Inventory
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Sub AddSku ( _
productCatalogName As String, _
productId As String, _
variantId As String, _
quantity As Decimal, _
status As StockStatus, _
stockOutThreshold As Decimal _
)
'Usage
Dim instance As InventorySkuCollection
Dim productCatalogName As String
Dim productId As String
Dim variantId As String
Dim quantity As Decimal
Dim status As StockStatus
Dim stockOutThreshold As Decimal
instance.AddSku(productCatalogName, productId, _
variantId, quantity, status, stockOutThreshold)
public void AddSku(
string productCatalogName,
string productId,
string variantId,
decimal quantity,
StockStatus status,
decimal stockOutThreshold
)
public:
void AddSku(
String^ productCatalogName,
String^ productId,
String^ variantId,
Decimal quantity,
StockStatus status,
Decimal stockOutThreshold
)
public function AddSku(
productCatalogName : String,
productId : String,
variantId : String,
quantity : decimal,
status : StockStatus,
stockOutThreshold : decimal
)
Parameters
- productCatalogName
Type: System..::.String
The name of the mapped product catalog.
- productId
Type: System..::.String
The product identifier.
- variantId
Type: System..::.String
The variant identifier.
- quantity
Type: System..::.Decimal
The inventory SKU quantity.
- status
Type: Microsoft.CommerceServer.Catalog..::.StockStatus
The SKU status
- stockOutThreshold
Type: System..::.Decimal
The stock out threshold for the SKU..
Remarks
The stock out threshold is nothing more than a value that the SKU’s quantity must be above or equal to be considered in-stock. e.g. 1 or 0. Usually a low, safe value.
Use this method to add a InventorySku to the InventorySkuCollection 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.