Jaa


CreateSku Method (String, String, Decimal, StockStatus)

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Creates an inventory SKU.

Namespace:  Microsoft.CommerceServer.Inventory
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Function CreateSku ( _
    productCatalogName As String, _
    productId As String, _
    quantity As Decimal, _
    status As StockStatus _
) As InventorySku
'Usage
Dim instance As InventoryCatalog
Dim productCatalogName As String
Dim productId As String
Dim quantity As Decimal
Dim status As StockStatus
Dim returnValue As InventorySku

returnValue = instance.CreateSku(productCatalogName, _
    productId, quantity, status)
public InventorySku CreateSku(
    string productCatalogName,
    string productId,
    decimal quantity,
    StockStatus status
)
public:
InventorySku^ CreateSku(
    String^ productCatalogName, 
    String^ productId, 
    Decimal quantity, 
    StockStatus status
)
public function CreateSku(
    productCatalogName : String, 
    productId : String, 
    quantity : decimal, 
    status : StockStatus
) : InventorySku

Parameters

Return Value

Type: Microsoft.CommerceServer.Inventory..::.InventorySku
An InventorySku object containing information about the inventory SKU.

Remarks

Creates a product in the inventory catalog and returns an InventorySku class.

Permissions

See Also

Reference

InventoryCatalog Class

InventoryCatalog Members

CreateSku Overload

Microsoft.CommerceServer.Inventory Namespace