Export (0) Print
Expand All

SearchOptions Class

This documentation is no longer available on MSDN. It is available as a CHM or PDF download. For the newest Geocoding, Imagery, Routing and Traffic services, see the Bing Maps REST Services

Contains properties used to refine a search service request.


public class SearchOptions

Name Description

SearchOptions

Initializes a new instance of a SearchOptions object.

Name Description

AutocorrectQuery

A bool indicating if the spelling of words in the search query should be corrected. Optional. The default value is true.

Count

An int specifying the number of search results to return. Optional. The default value is 10.

Filters

A FilterExpressionBase Class array specifying how to filter the search results that are returned. Optional.

ListingType

A ListingType Enumeration value identifying the listing type to search. Optional. The default value is ListingType.Business.

ParseOnly

A bool indicating if the search query should only be parsed. Optional. The default is false, in which case search results are returned as well.

Radius

A double specifying the radius in DistanceUnits of the circle in which to search. The radius is measured from the center point of the search region returned. Optional. The default value may vary depending on the size of the search region.

SortOrder

A SortOrder Enumeration value specifying how to sort the search results. Optional. The default value is SortOrder.Relevance.

StartingIndex

An int specifying the zero-based array index of the first result to return. Optional. The default value is 0.

Show:
© 2014 Microsoft