다음을 통해 공유


OfferAmount Property

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

Gets or sets the amount of the discount offer.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Property OfferAmount As Decimal
'Usage
Dim instance As Discount
Dim value As Decimal

value = instance.OfferAmount

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

Property Value

Type: System..::.Decimal
The quantity or percentage amount of the discount offer. Default is 0.

Exceptions

Exception Condition
MinimumValueValidationException

The OfferAmount has been to set to a number smaller than zero.

Remarks

If OfferType is set to Percentage, this is the percent discounted from the original price. If OfferType is set to Currency, this is the dollar amount discounted from the original price.

Permissions

See Also

Reference

Discount Class

Discount Members

Microsoft.CommerceServer.Marketing Namespace