OrderSystem Property

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

Gets an OrderContext specifying the order related operations used on the site.

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

public OrderContext OrderSystem { get; set; }

Property Value

Type: Microsoft.CommerceServer.Runtime.Orders..::.OrderContext
The OrderContext object used on the site.

A default OrderContext is available only if the CommerceOrderModule is configured in the Web.config file. Always check this property for a non nullNothingnullptra null reference (Nothing in Visual Basic) value before referencing it.