DoAcceptBasket Method
Validates the specified basket with the specified pipeline.
Namespace: Microsoft.CommerceServer.Orders
Assembly: Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)
Syntax
'Declaration
Protected Function DoAcceptBasket ( _
basketXml As XmlElement, _
pipelineName As String, _
saveOrder As Boolean _
) As XmlElement
'Usage
Dim basketXml As XmlElement
Dim pipelineName As String
Dim saveOrder As Boolean
Dim returnValue As XmlElement
returnValue = Me.DoAcceptBasket(basketXml, _
pipelineName, saveOrder)
protected XmlElement DoAcceptBasket(
XmlElement basketXml,
string pipelineName,
bool saveOrder
)
protected:
XmlElement^ DoAcceptBasket(
XmlElement^ basketXml,
String^ pipelineName,
bool saveOrder
)
protected function DoAcceptBasket(
basketXml : XmlElement,
pipelineName : String,
saveOrder : boolean
) : XmlElement
Parameters
- basketXml
Type: System.Xml..::.XmlElement
XML text that contains the basket.
- pipelineName
Type: System..::.String
Pipeline used for validation
- saveOrder
Type: System..::.Boolean
Specifies whether the order contained in the basket should be saved to the database. true to save the order to the database; otherwise false.
Return Value
Type: System.Xml..::.XmlElement
XML containing the Basket.
Remarks
If the saveOrder parameter is true, then after validation the basket is converted to a purchase order and saved to the database.
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.