DoSearchBasketsWithCount Method
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Returns a DataSet containing baskets that match the specified search criteria and options. The number of matched records are available.
Namespace: Microsoft.CommerceServer.Orders
Assembly: Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)
Syntax
'Declaration
Protected Function DoSearchBasketsWithCount ( _
searchClause As XmlElement, _
searchOptions As SearchOptions, _
<OutAttribute> ByRef recordsMatched As Integer _
) As DataSet
'Usage
Dim searchClause As XmlElement
Dim searchOptions As SearchOptions
Dim recordsMatched As Integer
Dim returnValue As DataSet
returnValue = Me.DoSearchBasketsWithCount(searchClause, _
searchOptions, recordsMatched)
protected DataSet DoSearchBasketsWithCount(
XmlElement searchClause,
SearchOptions searchOptions,
out int recordsMatched
)
protected:
DataSet^ DoSearchBasketsWithCount(
XmlElement^ searchClause,
SearchOptions^ searchOptions,
[OutAttribute] int% recordsMatched
)
protected function DoSearchBasketsWithCount(
searchClause : XmlElement,
searchOptions : SearchOptions,
recordsMatched : int
) : DataSet
Parameters
- searchClause
Type: System.Xml..::.XmlElement
XML text representing the search criteria.
- searchOptions
Type: Microsoft.CommerceServer..::.SearchOptions
A SearchOptions that contains options for this search.
- recordsMatched
Type: System..::.Int32%
Returns the number of records that match the search criteria.
Return Value
Type: System.Data..::.DataSet
A DataSet containing baskets that match the specified search criteria and options.
Remarks
The DataSet contains just the top level properties from the Basket class. It contains a data table named Basket with columns named as properties to return. The DataSet does not necessarily contain all the records that match the criteria. It is populated according to the searchOptions parameter.
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.