DbSpatialServices.GetPointCount Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetPointCount(DbGeography) |
Returns the number of points in the given DbGeography value, if it represents a linestring or linear ring. |
GetPointCount(DbGeometry) |
Returns the number of points in the given DbGeometry value, if it represents a linestring or linear ring. |
GetPointCount(DbGeography)
Returns the number of points in the given DbGeography value, if it represents a linestring or linear ring.
public abstract Nullable<int> GetPointCount (System.Data.Entity.Spatial.DbGeography geographyValue);
abstract member GetPointCount : System.Data.Entity.Spatial.DbGeography -> Nullable<int>
Public MustOverride Function GetPointCount (geographyValue As DbGeography) As Nullable(Of Integer)
Parameters
- geographyValue
- DbGeography
The geography value, which need not represent a linestring or linear ring.
Returns
The number of points in the given DbGeography value.
Exceptions
geographyValue
is null.
geographyValue
is not compatible with this spatial services implementation.
Applies to
GetPointCount(DbGeometry)
Returns the number of points in the given DbGeometry value, if it represents a linestring or linear ring.
public abstract Nullable<int> GetPointCount (System.Data.Entity.Spatial.DbGeometry geometryValue);
abstract member GetPointCount : System.Data.Entity.Spatial.DbGeometry -> Nullable<int>
Public MustOverride Function GetPointCount (geometryValue As DbGeometry) As Nullable(Of Integer)
Parameters
- geometryValue
- DbGeometry
The geometry value, which need not represent a linestring or linear ring.
Returns
The number of points in the given DbGeometry value.
Exceptions
geometryValue
is null.
geometryValue
is not compatible with this spatial services implementation.
Applies to
Entity Framework