Share via


GetBasketAsDataSet Method

Returns a DataSet for the basket with the specified order group identifier.

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

Syntax

'Declaration
Public Function GetBasketAsDataSet ( _
    orderGroupId As Guid _
) As DataSet
'Usage
Dim instance As BasketManager
Dim orderGroupId As Guid
Dim returnValue As DataSet

returnValue = instance.GetBasketAsDataSet(orderGroupId)
public DataSet GetBasketAsDataSet(
    Guid orderGroupId
)
public:
DataSet^ GetBasketAsDataSet(
    Guid orderGroupId
)
public function GetBasketAsDataSet(
    orderGroupId : Guid
) : DataSet

Parameters

  • orderGroupId
    Type: System..::.Guid
    The order group identifier to search for.

Return Value

Type: System.Data..::.DataSet
The DataSet containing the baskets with the specified order group identifier.

Exceptions

Exception Condition
NotAuthorizedException

The user does not have permission to perform this operation.

TimeoutException

Thrown if an SQL command timeout occurs.

Remarks

Returns a DataSet for the basket with the specified order group identifier.

In order to perform a GetBasketAsDataSet, the user must have the OrdersViewer permissions. See Orders System Roles [CS06] for more information about the specific roles in the Order System.

Some order system APIs support distributed transactions. If a cookie with a valid transaction is found the order system enlists as part of that transaction. If a valid transaction is not found the order system initiates a new transaction.

Permissions

See Also

Reference

BasketManager Class

BasketManager Members

Microsoft.CommerceServer.Orders Namespace