다음을 통해 공유


OrderContext Class

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

The starting point for all orders related operations in the order capture system. This class cannot be inherited.

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

Syntax

'Declaration
Public NotInheritable Class OrderContext
'Usage
Dim instance As OrderContext
public sealed class OrderContext
public ref class OrderContext sealed
public final class OrderContext

Remarks

Represents a connection to a transactions database. The construction of an OrderGroup object requires an OrderContext object. A default OrderContext object is created by the Commerce Server .NET Application Framework if the CommerceOrderModule is configured in the web.config file and if a transactions resource exists for the site.

In an ASP.NET application, a pre-created instance of the OrderContext class is available via the CommerceContext.Current.OrderContext property. Non-ASP.NET applications can create standalone OrderContext instances using the publicly exposed constructor. The OrderContext class is sealed and non-extensible.

Inheritance Hierarchy

System..::.Object
  Microsoft.CommerceServer.Runtime.Orders..::.OrderContext

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

OrderContext Members

Microsoft.CommerceServer.Runtime.Orders Namespace