PurchaseOrder Constructor (SerializationInfo, StreamingContext)

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

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 PurchaseOrder(info, context)
protected PurchaseOrder(
    SerializationInfo info,
    StreamingContext context
)
protected:
PurchaseOrder(
    SerializationInfo^ info, 
    StreamingContext context
)
protected function PurchaseOrder(
    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 the deserialization constructors of derived classes. This constructor must be called from a derived class's deserialization constructor to ensure that deserialization succeeds.

Purchase orders are uniquely identified by their purchase order ID or tracking number. A customer can have multiple purchase orders. Purchase orders are modifiable entities. However, they cannot be converted to any other type (baskets or order templates) in the order capture system.

Permissions

See Also

Reference

PurchaseOrder Class

PurchaseOrder Members

PurchaseOrder Overload

Microsoft.CommerceServer.Runtime.Orders Namespace