Table of Contents

Class GeoHaystackSearchResult<TDocument>.GeoHaystackSearchHits

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

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 BsonArray

The hits.

Properties

Count

Gets the count of the number of hits.

public override int Count { get; }

Property Value

int

this[int]

Gets an individual hit.

public GeoHaystackSearchResult<TDocument>.GeoHaystackSearchHit this[int index] { get; }

Parameters

index int

The 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 int

The zero based index of the hit.

Returns

GeoHaystackSearchResult.GeoHaystackSearchHit

The hit.