Table of Contents

Class GeoNearResult<TDocument>.GeoNearHits

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

Represents a collection of GeoNear hits.

public class GeoNearResult<TDocument>.GeoNearHits : GeoNearResult.GeoNearHits, IEnumerable<GeoNearResult<TDocument>.GeoNearHit>, IEnumerable
Inheritance
GeoNearResult<TDocument>.GeoNearHits
Implements
Inherited Members
Extension Methods

Constructors

GeoNearHits(BsonArray)

Initializes a new instance of the GeoNearHits class.

public GeoNearHits(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 GeoNearResult<TDocument>.GeoNearHit this[int index] { get; }

Parameters

index int

The zero based index of the hit.

Property Value

GeoNearResult<TDocument>.GeoNearHit

The hit.

Methods

GetEnumerator()

Gets an enumerator for the hits.

public IEnumerator<GeoNearResult<TDocument>.GeoNearHit> GetEnumerator()

Returns

IEnumerator<GeoNearResult<TDocument>.GeoNearHit>

An enumerator.

GetEnumeratorImplementation()

Gets an enumerator for the hits.

protected override IEnumerator<GeoNearResult.GeoNearHit> GetEnumeratorImplementation()

Returns

IEnumerator<GeoNearResult.GeoNearHit>

An enumerator.

GetHitImplementation(int)

Gets a hit.

protected override GeoNearResult.GeoNearHit GetHitImplementation(int index)

Parameters

index int

The zero based index of the hit.

Returns

GeoNearResult.GeoNearHit

The hit.