DbSpatialServices.GetPointCount Method (DbGeography)

.NET Framework (current version)
 

Returns the number of points in the given DbGeography value, if it represents a linestring or linear ring.

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

public abstract Nullable<int> GetPointCount(
	DbGeography geographyValue
)

Parameters

geographyValue
Type: System.Data.Spatial.DbGeography

The geography value, which need not represent a linestring or linear ring.

Return Value

Type: System.Nullable<Int32>

The number of points in the given DbGeography value.

Exception Condition
ArgumentNullException

geographyValue

ArgumentException

geographyValue

.NET Framework
Available since 4.5
Return to top
Show: