Bagikan melalui


CatalogSearchOptions Constructor

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

Initializes a new instance of the CatalogSearchOptions class.

Overload List

  Name Description
ms987826.pubmethod(en-US,CS.70).gif CatalogSearchOptions()()() Initializes a new instance of the CatalogSearchOptions class.
ms987826.pubmethod(en-US,CS.70).gif CatalogSearchOptions(CatalogSearchOptions) Initializes a new instance of the CatalogSearchOptions class using the supplied XmlData.CatalogSearchOptions.
ms987826.pubmethod(en-US,CS.70).gif CatalogSearchOptions(CatalogSearchOptions) Initializes a new instance of the CatalogSearchOptions class using the supplied CatalogSearchOptions.

Top

Remarks

You can use properties in this class to customize the search results. You should create an instance of the class, set the appropriate properties and pass it as a parameter to the Search method to apply the filter criteria.

A CatalogSearchOptions object can be provided to catalog methods that perform a database search to specify which records to return, how to sort the result set, and so on. Note that not all methods respect all of the settings. When the site is run in Debug mode or Checked mode, a warning message will be logged to the active DebugContext object whenever a setting has been made that cannot be respected.

The maximum number of results returned by a Catalog Search is limited by the MaxSearchResults value in the catalog webservice web.config. This limits the returned collections for a CatalogSearch, ChildProducts (ChildProducts, ChildProducts), ChildCategories (ChildCategories, ChildCategories), and Variants (Variants, Variants) Collections. It does not affect ParentCategories, AncestorCategories and CanonicalCategories collections.

See Also

Reference

CatalogSearchOptions Class

CatalogSearchOptions Members

Microsoft.CommerceServer.Catalog Namespace