LastRestocked Property

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

Gets or sets the last restocked date.

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

Syntax

'Declaration
Public Property LastRestocked As DateTime
'Usage
Dim instance As InventorySku
Dim value As DateTime

value = instance.LastRestocked

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

Property Value

Type: System..::.DateTime
The last restocked date.

Remarks

Stores the date the product was last restocked. This is an optional attribute which specifies the DateTime the inventory information (OnHandQuantity) was last updated.

If the InventorySku already exists, the LastRestocked property is imported only if it is specified in the PropertiesToImport. If the PropertiesToImport does not specify to import the LastRestocked property, then it is not imported.

If the InventorySku does not exist in the inventory catalog then, when the new InventorySku is being created, the LastRestocked property is set to the current date.

Permissions

See Also

Reference

InventorySku Class

InventorySku Members

Microsoft.CommerceServer.Inventory Namespace