OrderContext Property
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Gets the default OrderContext instance created by the module.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Shared ReadOnly Property OrderContext As OrderContext
'Usage
Dim value As OrderContext
value = CommerceOrderModule.OrderContext
public static OrderContext OrderContext { get; }
public:
static property OrderContext^ OrderContext {
OrderContext^ get ();
}
public static function get OrderContext () : OrderContext
Property Value
Type: Microsoft.CommerceServer.Runtime.Orders..::.OrderContext
The default OrderContext instance created by the module.
Remarks
The value will be nullNothingnullptra null reference (Nothing in Visual Basic) if the CommerceOrderModule is not configured in Web.config.
ASP.Net pages reference the order context through the OrderSystem property.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.