Share via


Create Method (OrderServiceAgent)

Initializes a new instance of the OrderManagementContext class for Agent mode using the specified orders web service.

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

Syntax

'Declaration
Public Shared Function Create ( _
    agent As OrderServiceAgent _
) As OrderManagementContext
'Usage
Dim agent As OrderServiceAgent
Dim returnValue As OrderManagementContext

returnValue = OrderManagementContext.Create(agent)
public static OrderManagementContext Create(
    OrderServiceAgent agent
)
public:
static OrderManagementContext^ Create(
    OrderServiceAgent^ agent
)
public static function Create(
    agent : OrderServiceAgent
) : OrderManagementContext

Parameters

Return Value

Type: Microsoft.CommerceServer.Orders..::.OrderManagementContext
An OrderManagementContext object.

Remarks

Initializes a new instance of the OrderManagementContext class for Agent mode using the specified orders web service.

Permissions

See Also

Reference

OrderManagementContext Class

OrderManagementContext Members

Create Overload

Microsoft.CommerceServer.Orders Namespace