SearchPurchaseOrders Method
Returns a DataSet containing PurchaseOrder objects that match a supplied search criteria with options.
Namespace: Microsoft.CommerceServer.Orders.WebService
Assembly: Microsoft.CommerceServer.Orders.DataManagement (in Microsoft.CommerceServer.Orders.DataManagement.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Overridable Function SearchPurchaseOrders ( _
searchClause As XmlElement, _
searchOptions As SearchOptions _
) As DataSet
'Usage
Dim instance As OrdersWebService
Dim searchClause As XmlElement
Dim searchOptions As SearchOptions
Dim returnValue As DataSet
returnValue = instance.SearchPurchaseOrders(searchClause, _
searchOptions)
[WebMethodAttribute]
public virtual DataSet SearchPurchaseOrders(
XmlElement searchClause,
SearchOptions searchOptions
)
[WebMethodAttribute]
public:
virtual DataSet^ SearchPurchaseOrders(
XmlElement^ searchClause,
SearchOptions^ searchOptions
)
public function SearchPurchaseOrders(
searchClause : XmlElement,
searchOptions : SearchOptions
) : DataSet
Parameters
- searchClause
Type: System.Xml..::.XmlElement
Xml blob representing the search criteria.
- searchOptions
Type: Microsoft.CommerceServer..::.SearchOptions
The SearchOptions containing the search options. Passing nullNothingnullptra null reference (Nothing in Visual Basic) means to use default search options.
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.
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
- 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.