Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DbSpatialServices.GetElementCount Method (DbGeometry)

.NET Framework 4.6 and 4.5

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

Namespace:  System.Data.Spatial
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public abstract Nullable<int> GetElementCount(
	DbGeometry geometryValue
)

Parameters

geometryValue
Type: System.Data.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.

ExceptionCondition
ArgumentNullException

geometryValue

ArgumentException

geometryValue

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft