ListPrice Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets or sets the current list price of the line item in the product catalog.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Property ListPrice As Decimal
'Usage
Dim instance As LineItem
Dim value As Decimal
value = instance.ListPrice
instance.ListPrice = value
public decimal ListPrice { get; set; }
public:
property Decimal ListPrice {
Decimal get ();
void set (Decimal value);
}
public function get ListPrice () : decimal
public function set ListPrice (value : decimal)
Property Value
Type: System..::.Decimal
The current unit price of the current instance in the product catalog. Cannot be less than zero.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The value being set is less than zero. Assign a value to ListPrice that is greater than or equal to zero to prevent this exception. |
Remarks
The price that should be applied to this item. Units for this value are determined by the currency attribute of the containing catalog.
ListPrice, in conjunction with PlacedPrice, can be used to inform a customer if the price in the catalog has changed since it was added to an order group.
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.