Edit

Share via


DbSpatialServices.GetPointCount Method

Definition

Returns the number of points in the given value.

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::Spatial::DbGeography ^ geographyValue);
public abstract int? GetPointCount (System.Data.Spatial.DbGeography geographyValue);
abstract member GetPointCount : System.Data.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

geographyValue

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::Spatial::DbGeometry ^ geometryValue);
public abstract int? GetPointCount (System.Data.Spatial.DbGeometry geometryValue);
abstract member GetPointCount : System.Data.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

geometryValue

Applies to