DbGeography.Distance(DbGeography) Methode

Definitie

Berekent de afstand tussen de dichtstbijzijnde punten in deze DbGeography-waarde en een andere DbGeography-waarde.

public:
 Nullable<double> Distance(System::Data::Spatial::DbGeography ^ other);
public double? Distance(System.Data.Spatial.DbGeography other);
member this.Distance : System.Data.Spatial.DbGeography -> Nullable<double>
Public Function Distance (other As DbGeography) As Nullable(Of Double)

Parameters

other
DbGeography

De geografische waarde waarvoor de afstand van deze waarde moet worden berekend.

Retouren

Een dubbele waarde die de afstand aangeeft tussen de twee dichtstbijzijnde punten in deze geografiewaarde en other.

Uitzonderingen

Van toepassing op