Class GeoHaystackSearchResult<TDocument>.GeoHaystackSearchHits
Represents a collection of GeoHaystackSearch hits.
public class GeoHaystackSearchResult<TDocument>.GeoHaystackSearchHits : GeoHaystackSearchResult.GeoHaystackSearchHits, IEnumerable<GeoHaystackSearchResult<TDocument>.GeoHaystackSearchHit>, IEnumerable
- Inheritance
-
GeoHaystackSearchResult<TDocument>.GeoHaystackSearchHits
- Implements
- Inherited Members
- Extension Methods
Constructors
GeoHaystackSearchHits(BsonArray)
Initializes a new instance of the GeoHaystackSearchHits class.
public GeoHaystackSearchHits(BsonArray hits)
Parameters
hits
BsonArrayThe hits.
Properties
Count
Gets the count of the number of hits.
public override int Count { get; }
Property Value
this[int]
Gets an individual hit.
public GeoHaystackSearchResult<TDocument>.GeoHaystackSearchHit this[int index] { get; }
Parameters
index
intThe zero based index of the hit.
Property Value
- GeoHaystackSearchResult<TDocument>.GeoHaystackSearchHit
The hit.
Methods
GetEnumerator()
Gets an enumerator for the hits.
public IEnumerator<GeoHaystackSearchResult<TDocument>.GeoHaystackSearchHit> GetEnumerator()
Returns
- IEnumerator<GeoHaystackSearchResult<TDocument>.GeoHaystackSearchHit>
An enumerator.
GetEnumeratorImplementation()
Gets an enumerator for the hits.
protected override IEnumerator<GeoHaystackSearchResult.GeoHaystackSearchHit> GetEnumeratorImplementation()
Returns
- IEnumerator<GeoHaystackSearchResult.GeoHaystackSearchHit>
An enumerator.
GetHitImplementation(int)
Gets a hit.
protected override GeoHaystackSearchResult.GeoHaystackSearchHit GetHitImplementation(int index)
Parameters
index
intThe zero based index of the hit.