Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Use this method to perform a specification search guaranteed to return results if any products exist in the category being searched, along with the total number of records in the search.
Namespace: Microsoft.CommerceServer.Catalog
Assembly: Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)
Syntax
'Declaration
Public Function GuaranteedSearch ( _
<OutAttribute> ByRef totalRecords As Integer _
) As CatalogItemsDataSet
'Usage
Dim instance As SpecificationSearch
Dim totalRecords As Integer
Dim returnValue As CatalogItemsDataSet
returnValue = instance.GuaranteedSearch(totalRecords)
public CatalogItemsDataSet GuaranteedSearch(
out int totalRecords
)
public:
CatalogItemsDataSet^ GuaranteedSearch(
[OutAttribute] int% totalRecords
)
public function GuaranteedSearch(
totalRecords : int
) : CatalogItemsDataSet
Parameters
- totalRecords
Type: System..::.Int32%
Total number of records in the search.
Return Value
Type: Microsoft.CommerceServer.Catalog..::.CatalogItemsDataSet
A CatalogItemsDataSet with a single DataTable containing the search results.
Remarks
The GuaranteedSpecificationSearch method removes search clauses from the search mechanism one at a time until some results are returned.
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.