SqlSpatialServices.GetElementCount Method

 

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

Namespace:   System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

NameDescription
System_CAPS_pubmethodGetElementCount(DbGeography)

Returns the number of elements in the given DbGeography value, if it represents a geography collection.(Overrides DbSpatialServices.GetElementCount(DbGeography).)

System_CAPS_pubmethodGetElementCount(DbGeometry)

Returns the number of elements in the given DbGeometry value, if it represents a geometry collection.(Overrides DbSpatialServices.GetElementCount(DbGeometry).)


SqlSpatialServices.GetElementCount Method (DbGeography)

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

public override Nullable<int> GetElementCount(
	DbGeography geographyValue
)

Parameters

geographyValue
Type: System.Data.Entity.Spatial.DbGeography

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

Return Value

Type: System.Nullable<Int32>

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


SqlSpatialServices.GetElementCount Method (DbGeometry)

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

public override Nullable<int> GetElementCount(
	DbGeometry geometryValue
)

Parameters

geometryValue
Type: System.Data.Entity.Spatial.DbGeometry

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

Return Value

Type: System.Nullable<Int32>

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