Partager via


SearchBasketsWithCount Method

Returns a DataSet containing baskets that match a supplied search criteria with options. The total number of returned records are available.

Namespace:  Microsoft.CommerceServer.Orders.WebService
Assembly:  Microsoft.CommerceServer.Orders.DataManagement (in Microsoft.CommerceServer.Orders.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function SearchBasketsWithCount ( _
    searchClause As XmlElement, _
    searchOptions As SearchOptions, _
    <OutAttribute> ByRef recordsMatched As Integer _
) As DataSet
'Usage
Dim instance As OrdersWebService
Dim searchClause As XmlElement
Dim searchOptions As SearchOptions
Dim recordsMatched As Integer
Dim returnValue As DataSet

returnValue = instance.SearchBasketsWithCount(searchClause, _
    searchOptions, recordsMatched)
[WebMethodAttribute]
public virtual DataSet SearchBasketsWithCount(
    XmlElement searchClause,
    SearchOptions searchOptions,
    out int recordsMatched
)
[WebMethodAttribute]
public:
virtual DataSet^ SearchBasketsWithCount(
    XmlElement^ searchClause, 
    SearchOptions^ searchOptions, 
    [OutAttribute] int% recordsMatched
)
public function SearchBasketsWithCount(
    searchClause : XmlElement, 
    searchOptions : SearchOptions, 
    recordsMatched : int
) : DataSet

Parameters

  • recordsMatched
    Type: System..::.Int32%
    Returns the total number of records that matched the given query.

Return Value

Type: System.Data..::.DataSet
The DataSet containing the baskets that match the search clause.

Remarks

The DataSet contains just the top level properties from Basket class. It contains a DataTable named Basket with columns named as properties to return. The DataSet does not contain all the records that match the criteria. It is populated with the pages the user asks for using the search options.

The total number of returned records are available.

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

Permissions

See Also

Reference

OrdersWebService Class

OrdersWebService Members

Microsoft.CommerceServer.Orders.WebService Namespace