Delen via


DoSearchPurchaseOrdersWithCount Method

Returns a DataSet containing purchase orders that match 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 DoSearchPurchaseOrdersWithCount ( _
    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.DoSearchPurchaseOrdersWithCount(searchClause, _
    searchOptions, recordsMatched)
protected DataSet DoSearchPurchaseOrdersWithCount(
    XmlElement searchClause,
    SearchOptions searchOptions,
    out int recordsMatched
)
protected:
DataSet^ DoSearchPurchaseOrdersWithCount(
    XmlElement^ searchClause, 
    SearchOptions^ searchOptions, 
    [OutAttribute] int% recordsMatched
)
protected function DoSearchPurchaseOrdersWithCount(
    searchClause : XmlElement, 
    searchOptions : SearchOptions, 
    recordsMatched : int
) : DataSet

Parameters

  • recordsMatched
    Type: System..::.Int32%
    Returns the number of records that match the search criteria.

Return Value

Type: System.Data..::.DataSet
A DataSet containing purchase orders that match specified search criteria and options.

Remarks

The DataSet contains just the top level properties from the PurchaseOrderclass. It contains a data table named PurchaseOrder with columns named as the properties to return. The DataSet does not necessarily contain all the records that match the criteria. It is populated only with the pages defined by the searchOptions parameter.

Permissions

See Also

Reference

OrderServices Class

OrderServices Members

Microsoft.CommerceServer.Orders Namespace