DbSpatialServices.GetElementCount Method

Definition

Overloads

GetElementCount(DbGeometry)

Returns the number of elements in the given DbGeometry value, if it represents a geometry collection.

GetElementCount(DbGeography)

Returns the number of elements in the given DbGeography value, if it represents a geography collection.

GetElementCount(DbGeometry)

Returns the number of elements in the given DbGeometry value, if it represents a geometry collection.

public abstract Nullable<int> GetElementCount (System.Data.Entity.Spatial.DbGeometry geometryValue);
abstract member GetElementCount : System.Data.Entity.Spatial.DbGeometry -> Nullable<int>
Public MustOverride Function GetElementCount (geometryValue As DbGeometry) As Nullable(Of Integer)

Parameters

geometryValue
DbGeometry

The geometry value, which need not represent a geometry collection.

Returns

The number of elements in geometryValue, if it represents a collection of other geometry values; otherwise null.

Exceptions

geometryValue is null.

geometryValue is not compatible with this spatial services implementation.

Applies to

GetElementCount(DbGeography)

Returns the number of elements in the given DbGeography value, if it represents a geography collection.

public abstract Nullable<int> GetElementCount (System.Data.Entity.Spatial.DbGeography geographyValue);
abstract member GetElementCount : System.Data.Entity.Spatial.DbGeography -> Nullable<int>
Public MustOverride Function GetElementCount (geographyValue As DbGeography) As Nullable(Of Integer)

Parameters

geographyValue
DbGeography

The geography value, which need not represent a geography collection.

Returns

The number of elements in geographyValue, if it represents a collection of other geography values; otherwise null.

Exceptions

geographyValue is null.

geographyValue is not compatible with this spatial services implementation.

Applies to