DbSpatialServices.GetElementCount Method (DbGeography)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public abstract Nullable<int> GetElementCount(
	DbGeography geographyValue
)

Parameters

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

Exception Condition
ArgumentNullException

geographyValue

ArgumentException

geographyValue

.NET Framework
Available since 4.5
Return to top
Show: