Table of Contents

Class GeoNearResult.GeoNearHits

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

Represents a collection of GeoNear hits.

public abstract class GeoNearResult.GeoNearHits : IEnumerable
Inheritance
GeoNearResult.GeoNearHits
Implements
Derived
Inherited Members
Extension Methods

Constructors

GeoNearHits()

Initializes a new instance of the GeoNearHits class.

protected GeoNearHits()

Properties

Count

Gets the count of the number of hits.

public abstract int Count { get; }

Property Value

int

this[int]

Gets an individual hit.

public GeoNearResult.GeoNearHit this[int index] { get; }

Parameters

index int

The zero based index of the hit.

Property Value

GeoNearResult.GeoNearHit

The hit.

Methods

GetEnumerator()

Gets an enumerator for the hits.

public IEnumerator<GeoNearResult.GeoNearHit> GetEnumerator()

Returns

IEnumerator<GeoNearResult.GeoNearHit>

An enumerator.

GetEnumeratorImplementation()

Gets the enumerator.

protected abstract IEnumerator<GeoNearResult.GeoNearHit> GetEnumeratorImplementation()

Returns

IEnumerator<GeoNearResult.GeoNearHit>

An enumerator.

GetHitImplementation(int)

Gets an individual hit.

protected abstract GeoNearResult.GeoNearHit GetHitImplementation(int index)

Parameters

index int

The zero based index of the hit.

Returns

GeoNearResult.GeoNearHit

The hit.