Create Method (OrderSiteAgent)
Initializes a new instance of the OrderManagementContext class for non-web application (inproc mode).
Namespace: Microsoft.CommerceServer.Orders
Assembly: Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)
Syntax
'Declaration
Public Shared Function Create ( _
agent As OrderSiteAgent _
) As OrderManagementContext
'Usage
Dim agent As OrderSiteAgent
Dim returnValue As OrderManagementContext
returnValue = OrderManagementContext.Create(agent)
public static OrderManagementContext Create(
OrderSiteAgent agent
)
public:
static OrderManagementContext^ Create(
OrderSiteAgent^ agent
)
public static function Create(
agent : OrderSiteAgent
) : OrderManagementContext
Parameters
- agent
Type: Microsoft.CommerceServer.Orders..::.OrderSiteAgent
The OrderSiteAgent object representing the Order Site Web service.
Return Value
Type: Microsoft.CommerceServer.Orders..::.OrderManagementContext
An OrderManagementContext object.
Remarks
Initializes a new instance of the OrderManagementContext class for non-web application (inproc mode).
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.