dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Events

SearchViewModelSuggestCompleteEvent Class

Event result type for the SearchViewModel.OnSuggestComplete event.

public class SearchViewModelSuggestCompleteEvent :
System.IEquatable<dymaptic.GeoBlazor.Core.Events.SearchViewModelSuggestCompleteEvent>

Inheritance System.Object 🡒 SearchViewModelSuggestCompleteEvent

Implements System.IEquatable<SearchViewModelSuggestCompleteEvent>

Constructors

SearchViewModelSuggestCompleteEvent(Nullable, IReadOnlyCollection, Nullable, IReadOnlyCollection, string) Constructor

Event result type for the SearchViewModel.OnSuggestComplete event.

public SearchViewModelSuggestCompleteEvent(System.Nullable<int> ActiveSourceIndex=null, System.Collections.Generic.IReadOnlyCollection<dymaptic.GeoBlazor.Core.Model.Error>? Errors=null, System.Nullable<double> NumResults=null, System.Collections.Generic.IReadOnlyCollection<dymaptic.GeoBlazor.Core.Results.SearchViewModelSuggestCompleteEventResults>? Results=null, string? SearchTerm=null);

Parameters

ActiveSourceIndex System.Nullable<System.Int32>

The index of the source from which suggestions are obtained. This value is

-1  
``` when all sources are selected.

<a name='dymaptic.GeoBlazor.Core.Events.SearchViewModelSuggestCompleteEvent.SearchViewModelSuggestCompleteEvent(System.Nullable_int_,System.Collections.Generic.IReadOnlyCollection_dymaptic.GeoBlazor.Core.Model.Error_,System.Nullable_double_,System.Collections.Generic.IReadOnlyCollection_dymaptic.GeoBlazor.Core.Results.SearchViewModelSuggestCompleteEventResults_,string).Errors'></a>

`Errors` [System.Collections.Generic.IReadOnlyCollection&lt;](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyCollection-1 'System.Collections.Generic.IReadOnlyCollection`1')[Error](dymaptic.GeoBlazor.Core.Model.Error.html 'dymaptic.GeoBlazor.Core.Model.Error')[&gt;](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyCollection-1 'System.Collections.Generic.IReadOnlyCollection`1')

An array of error objects returned from the suggest results.

<a name='dymaptic.GeoBlazor.Core.Events.SearchViewModelSuggestCompleteEvent.SearchViewModelSuggestCompleteEvent(System.Nullable_int_,System.Collections.Generic.IReadOnlyCollection_dymaptic.GeoBlazor.Core.Model.Error_,System.Nullable_double_,System.Collections.Generic.IReadOnlyCollection_dymaptic.GeoBlazor.Core.Results.SearchViewModelSuggestCompleteEventResults_,string).NumResults'></a>

`NumResults` [System.Nullable&lt;](https://docs.microsoft.com/en-us/dotnet/api/System.Nullable-1 'System.Nullable`1')[System.Double](https://docs.microsoft.com/en-us/dotnet/api/System.Double 'System.Double')[&gt;](https://docs.microsoft.com/en-us/dotnet/api/System.Nullable-1 'System.Nullable`1')

The number of suggest results.

<a name='dymaptic.GeoBlazor.Core.Events.SearchViewModelSuggestCompleteEvent.SearchViewModelSuggestCompleteEvent(System.Nullable_int_,System.Collections.Generic.IReadOnlyCollection_dymaptic.GeoBlazor.Core.Model.Error_,System.Nullable_double_,System.Collections.Generic.IReadOnlyCollection_dymaptic.GeoBlazor.Core.Results.SearchViewModelSuggestCompleteEventResults_,string).Results'></a>

`Results` [System.Collections.Generic.IReadOnlyCollection&lt;](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyCollection-1 'System.Collections.Generic.IReadOnlyCollection`1')[SearchViewModelSuggestCompleteEventResults](dymaptic.GeoBlazor.Core.Results.SearchViewModelSuggestCompleteEventResults.html 'dymaptic.GeoBlazor.Core.Results.SearchViewModelSuggestCompleteEventResults')[&gt;](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IReadOnlyCollection-1 'System.Collections.Generic.IReadOnlyCollection`1')

An array of objects representing the results of suggest. See object specification  
table below for more information about the result object.

<a name='dymaptic.GeoBlazor.Core.Events.SearchViewModelSuggestCompleteEvent.SearchViewModelSuggestCompleteEvent(System.Nullable_int_,System.Collections.Generic.IReadOnlyCollection_dymaptic.GeoBlazor.Core.Model.Error_,System.Nullable_double_,System.Collections.Generic.IReadOnlyCollection_dymaptic.GeoBlazor.Core.Results.SearchViewModelSuggestCompleteEventResults_,string).SearchTerm'></a>

`SearchTerm` [System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')

The search expression used for the suggest.
### Properties

<a name='dymaptic.GeoBlazor.Core.Events.SearchViewModelSuggestCompleteEvent.ActiveSourceIndex'></a>

## SearchViewModelSuggestCompleteEvent.ActiveSourceIndex Property

The index of the source from which suggestions are obtained. This value is   
  
```csharp  
-1  
``` when all sources are selected.

```csharp
public System.Nullable<int> ActiveSourceIndex { get; set; }

Property Value

System.Nullable<System.Int32>

SearchViewModelSuggestCompleteEvent.Errors Property

An array of error objects returned from the suggest results.

public System.Collections.Generic.IReadOnlyCollection<dymaptic.GeoBlazor.Core.Model.Error>? Errors { get; set; }

Property Value

System.Collections.Generic.IReadOnlyCollection<Error>

SearchViewModelSuggestCompleteEvent.NumResults Property

The number of suggest results.

public System.Nullable<double> NumResults { get; set; }

Property Value

System.Nullable<System.Double>

SearchViewModelSuggestCompleteEvent.Results Property

An array of objects representing the results of suggest. See object specification
table below for more information about the result object.

public System.Collections.Generic.IReadOnlyCollection<dymaptic.GeoBlazor.Core.Results.SearchViewModelSuggestCompleteEventResults>? Results { get; set; }

Property Value

System.Collections.Generic.IReadOnlyCollection<SearchViewModelSuggestCompleteEventResults>

SearchViewModelSuggestCompleteEvent.SearchTerm Property

The search expression used for the suggest.

public string? SearchTerm { get; set; }

Property Value

System.String