Skip to main content

BingSearchDataProvider.Search(String, String, GeoPoint, Int32) Method

OBSOLETE

Due to changing Bing SOAP API to REST API, several options are not supported now. Please refer to the https://msdn.microsoft.com/en-us/library/cc980922.aspx topic to learn more.

Searches for locations that best correspond to the specified keywords near the specified location around the specified geographical point starting from the specified index.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v23.2.dll

NuGet Package: DevExpress.Wpf.Map

Declaration

[Obsolete("Due to changing Bing SOAP API to REST API, several options are not supported now. Please refer to the https://msdn.microsoft.com/en-us/library/cc980922.aspx topic to learn more.")]
[PreferableMember("BingSearchDataProvider", "Search", "")]
public void Search(
    string keyword,
    string location,
    GeoPoint searchAnchorPoint,
    int startingIndex
)

Parameters

Name Type Description
keyword String

A String containing information to search on a map. This string can contain either geographical names or any other information to look for.

location String

A String specifying the location near which it is necessary to search for the specified keyword.

searchAnchorPoint GeoPoint

A GeoPoint object specifying the geographical point, around which it is necessary to search for a keyword and a location.

startingIndex Int32

An integer value specifying the index of the first result that should be returned. This means, for instance, if the startingIndex is 5, first 4 results will be skipped.

Example

This example shows how to use the BingSearchDataProvider.Search method.

View Example

Private Sub Search_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    searchDataProvider.Search(teKeywords.Text)
End Sub
See Also