Skip to main content
All docs
V25.1
  • AzureSearchDataProvider.SearchCompleted Event

    Occurs when a search operation has been completed.

    Namespace: DevExpress.Xpf.Map

    Assembly: DevExpress.Xpf.Map.v25.1.dll

    NuGet Package: DevExpress.Wpf.Map

    Declaration

    public event AzureSearchCompletedEventHandler SearchCompleted

    Event Data

    The SearchCompleted event's data class is AzureSearchCompletedEventArgs. The following properties provide information specific to this event:

    Property Description
    Cancelled Gets a value indicating whether an asynchronous operation has been canceled. Inherited from AsyncCompletedEventArgs.
    Error Gets a value indicating which error occurred during an asynchronous operation. Inherited from AsyncCompletedEventArgs.
    RequestResult Returns the result of the search request. Inherited from SearchCompletedEventArgs.
    UserState Gets the unique identifier for the asynchronous task. Inherited from AsyncCompletedEventArgs.

    The event data class exposes the following methods:

    Method Description
    RaiseExceptionIfNecessary() Raises a user-supplied exception if an asynchronous operation failed. Inherited from AsyncCompletedEventArgs.

    Remarks

    To obtain search results for a user search query, do the following:

    1. Handle the SearchCompleted event.
    2. In the event handler, use the e.RequestResult.SearchResults property to obtain an array of LocationInformation objects.
    See Also