다음을 통해 공유


DiscountApplicationRecordBase Constructor (SerializationInfo, StreamingContext)

Initializes a new instance of the DiscountApplicationRecordBase class using the specified serialization information and streaming context.

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

Syntax

'Declaration
Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
'Usage
Dim info As SerializationInfo
Dim context As StreamingContext

Dim instance As New DiscountApplicationRecordBase(info, context)
protected DiscountApplicationRecordBase(
    SerializationInfo info,
    StreamingContext context
)
protected:
DiscountApplicationRecordBase(
    SerializationInfo^ info, 
    StreamingContext context
)
protected function DiscountApplicationRecordBase(
    info : SerializationInfo, 
    context : StreamingContext
)

Parameters

Exceptions

Exception Condition
InvalidCastException

The data you are using to deserialize from potentially does not have the same fields or field types as the existing runtime object. This could indicate a version mismatch between the runtime objects and the stored data.

SerializationException

There was a version mismatch between the data being deserialized and the current runtime object.

Remarks

This constructor is marked protected so it can be called from derived class's deserialization constructors. This constructor must be called from a derived class's deserialization constructor to ensure that deserialization succeeds.

Most developers will use DiscountApplicationRecord or ShippingDiscountRecord to access the DiscountId, DiscountName, and DiscountAmount.

An abstract class. The following classes derive from this class:

  • DiscountApplicationRecord - Provides an interface to the information written by the discount components from the marketing subsystem.

  • ShippingDiscountRecord - Provides an interface to the information written by the discount components in the marketing subsystem for shipping discounts.

Permissions

See Also

Reference

DiscountApplicationRecordBase Class

DiscountApplicationRecordBase Members

DiscountApplicationRecordBase Overload

Microsoft.CommerceServer.Runtime.Orders Namespace