DbSpatialServices.GetDimension Method (DbGeometry)

.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.

Gets the dimension of the given DbGeometry value or, if the value is a collections, the largest element dimension.

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

public abstract int GetDimension(
	DbGeometry geometryValue
)

Parameters

geometryValue
Type: System.Data.Spatial.DbGeometry

The geometry value for which the dimension value should be retrieved.

Return Value

Type: System.Int32

The dimension of geometryValue, or the largest element dimension if DbGeometry is a collection.

Exception Condition
ArgumentNullException

geometryValue

ArgumentException

geometryValue

.NET Framework
Available since 4.5
Return to top
Show: