DbGeography.Distance Method (DbGeography)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Computes the distance between the closest points in this DbGeography value and another DbGeography value.

Namespace:   System.Data.Spatial
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

Public Function Distance (
	other As DbGeography
) As Nullable(Of Double)

Parameters

other
Type: System.Data.Spatial.DbGeography

The geography value for which the distance from this value should be computed.

Return Value

Type: System.Nullable(Of Double)

A double value that specifies the distance between the two closest points in this geography value and other.

Exception Condition
ArgumentNullException

other

.NET Framework
Available since 4.5
Return to top
Show: