다음을 통해 공유


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

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

See Also

Reference

InventorySkuCollection Class

InventorySkuCollection Members

Microsoft.CommerceServer.Inventory Namespace