Share via


SubTotal Property

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

Gets or sets the sub total of the extended price values for all line items in the current instance.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Property SubTotal As Decimal
'Usage
Dim instance As OrderForm
Dim value As Decimal

value = instance.SubTotal

instance.SubTotal = value
public decimal SubTotal { get; set; }
public:
property Decimal SubTotal {
    Decimal get ();
    void set (Decimal value);
}
public function get SubTotal () : decimal
public function set SubTotal (value : decimal)

Property Value

Type: System..::.Decimal
The sum total of the extended price values for all line items.

Exceptions

Exception Condition
ArgumentException

SubTotal was set to a negative number.

Remarks

Sums the total of the extended price values for all line items in the current instance.

SubTotal is calculated during execution of the pipeline. If you add line items and access SubTotal without executing a pipeline, SubTotal will still be set to the initial value.

Permissions

See Also

Reference

OrderForm Class

OrderForm Members

Microsoft.CommerceServer.Runtime.Orders Namespace