שתף באמצעות


SearchOptions Class

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

Provides properties to customize search results.

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

Syntax

'Declaration
Public Class SearchOptions _
    Inherits CommonSearchOptions
'Usage
Dim instance As SearchOptions
public class SearchOptions : CommonSearchOptions
public ref class SearchOptions : public CommonSearchOptions
public class SearchOptions extends CommonSearchOptions

Remarks

A SearchOptions 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.

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.

Inheritance Hierarchy

System..::.Object
  Microsoft.CommerceServer.Catalog..::.CommonSearchOptions
    Microsoft.CommerceServer.Catalog..::.SearchOptions

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SearchOptions Members

Microsoft.CommerceServer.Catalog Namespace