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
- agent
Type: Microsoft.CommerceServer.Orders..::.OrderServiceAgent
The full URL of the orders web service.
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
- 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.