Share via


SqlSpatialServices.GetElementCount Method

Definition

Overloads

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.

GetElementCount(DbGeography)

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

public override Nullable<int> GetElementCount (System.Data.Entity.Spatial.DbGeography geographyValue);
override this.GetElementCount : System.Data.Entity.Spatial.DbGeography -> Nullable<int>
Public Overrides 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.

Applies to

GetElementCount(DbGeometry)

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

public override Nullable<int> GetElementCount (System.Data.Entity.Spatial.DbGeometry geometryValue);
override this.GetElementCount : System.Data.Entity.Spatial.DbGeometry -> Nullable<int>
Public Overrides 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.

Applies to