Total Property

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

Gets or sets the sum total of sub total, shipping, handling and taxes for the current OrderForm instance.

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

Syntax

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

value = instance.Total

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

Property Value

Type: System..::.Decimal
The sum total of sub total, shipping, handling and taxes. The total charge.

Exceptions

Exception Condition
ArgumentException

Total is set to a negative value.

Remarks

Stores the sum total of sub total, shipping, handling and taxes for the current OrderForm instance. Total is calculated during execution of the pipeline. If you add line items and access Total without executing a pipeline, Total will still be set to the initial value.

Permissions

See Also

Reference

OrderForm Class

OrderForm Members

Microsoft.CommerceServer.Runtime.Orders Namespace