Share via


Amount Property

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

Gets or sets the amount charged to the current instance.

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

Syntax

'Declaration
Public Property Amount As Decimal
'Usage
Dim instance As Payment
Dim value As Decimal

value = instance.Amount

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

Property Value

Type: System..::.Decimal
The amount charged.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The value in the set operation is less than zero.

Remarks

Stores the amount charged to the current instance. Only positive values are allowed for Amount. The amount can be zero to represent a payment covered by insurance provider, as in the case of PurchaseOrderPayment.

Permissions

See Also

Reference

Payment Class

Payment Members

Microsoft.CommerceServer.Runtime.Orders Namespace