Share via


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)

Syntax

'Declaration
Public Property OrderSystem As OrderContext
'Usage
Dim instance As CommerceContext
Dim value As OrderContext

value = instance.OrderSystem

instance.OrderSystem = value
public OrderContext OrderSystem { get; set; }
public:
property OrderContext^ OrderSystem {
    OrderContext^ get ();
    void set (OrderContext^ value);
}
public function get OrderSystem () : OrderContext
public function set OrderSystem (value : OrderContext)

Property Value

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

Remarks

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.

Permissions

See Also

Reference

CommerceContext Class

CommerceContext Members

Microsoft.CommerceServer.Runtime Namespace