Поделиться через


Search Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Performs a search using the information in the current instance.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Function Search As CatalogItemsDataSet
'Usage
Dim instance As CatalogSearch
Dim returnValue As CatalogItemsDataSet

returnValue = instance.Search()
public CatalogItemsDataSet Search()
public:
CatalogItemsDataSet^ Search()
public function Search() : CatalogItemsDataSet

Return Value

Type: Microsoft.CommerceServer.Catalog..::.CatalogItemsDataSet
A CatalogItemsDataSet containing the search results.

Exceptions

Exception Condition
ArgumentNullException

CatalogContext or CatalogNames are nullNothingnullptra null reference (Nothing in Visual Basic). Alternately, Both Microsoft.CommerceServer.Catalog.Agent.CatalogSearch.SqlWhereClause and Microsoft.CommerceServer.Catalog.Agent.CatalogSearch.FreeTextSearchPhrase are nullNothingnullptra null reference (Nothing in Visual Basic).

CatalogException

The search has failed.

Remarks

Performs the search based on the CatalogSearchOptions and the properties set on the CatalogSearch class and returns a CatalogItemsDataSet containing a single DataTable with the search results.

Permissions

See Also

Reference

CatalogSearch Class

CatalogSearch Members

Search Overload

Microsoft.CommerceServer.Catalog Namespace