Status Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets or sets the SKU status.
Namespace: Microsoft.CommerceServer.Inventory
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Property Status As StockStatus
'Usage
Dim instance As InventorySku
Dim value As StockStatus
value = instance.Status
instance.Status = value
public StockStatus Status { get; set; }
public:
property StockStatus Status {
StockStatus get ();
void set (StockStatus value);
}
public function get Status () : StockStatus
public function set Status (value : StockStatus)
Property Value
Type: Microsoft.CommerceServer.Catalog..::.StockStatus
The SKU status.
Remarks
This attribute defines the status of the product. If the product does exist in the inventory system and needs to be created than the status is a required attribute. If the product just needs to be updated then this is an optional attribute.
The StockStatus enumeration values are:
Disabled - The SKU is considered out of stock regardless of its current quantity.
Enabled - The SKU is determined to be in-stock or out of stock or back-ordered or pre-ordered depending on its quantity and Stock-Out Threshold.
Ignored - The SKU is bypassed by the inventory management system.
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.