다음을 통해 공유


Status Property

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

Gets or sets the value in the StatusColumn column of the InventorySkusDataSet..::.InventorySkusDataTable table.

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

Syntax

'Declaration
Public Property Status As Short
'Usage
Dim instance As InventorySkusDataSet..::.InventorySku
Dim value As Short

value = instance.Status

instance.Status = value
public short Status { get; set; }
public:
property short Status {
    short get ();
    void set (short value);
}
public function get Status () : short
public function set Status (value : short)

Property Value

Type: System..::.Int16
The SKU status.

Exceptions

Exception Condition
StrongTypingException

The value for column Status in table InventorySkus is DBNull.

Remarks

The value in the StatusColumn column of the InventorySkusDataSet..::.InventorySkusDataTable table.

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 disabled.

  • Enabled - The SKU is enabled.

  • Ignored - The SKU is ignored.

Permissions

See Also

Reference

InventorySkusDataSet..::.InventorySku Class

InventorySkusDataSet..::.InventorySku Members

Microsoft.CommerceServer.Inventory Namespace