DbSpatialServices.GetElementCount Method

Definition

Returns the number of elements in the given value.

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

geometryValue

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

geographyValue

Applies to