SearchPurchaseOrdersWithCount Method

Returns a DataSet containing PurchaseOrder objects 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 SearchPurchaseOrdersWithCount ( _
    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.SearchPurchaseOrdersWithCount(searchClause, _
    searchOptions, recordsMatched)
[WebMethodAttribute]
public virtual DataSet SearchPurchaseOrdersWithCount(
    XmlElement searchClause,
    SearchOptions searchOptions,
    out int recordsMatched
)
[WebMethodAttribute]
public:
virtual DataSet^ SearchPurchaseOrdersWithCount(
    XmlElement^ searchClause, 
    SearchOptions^ searchOptions, 
    [OutAttribute] int% recordsMatched
)
public function SearchPurchaseOrdersWithCount(
    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 PurchaseOrder objects that match the search clause.

Remarks

The returned DataSet contains just the top level properties from PurchaseOrder class. It contains a DataTable named PurchaseOrder 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 SearchPurchaseOrders, the user must have the OrdersAdapter 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