DbSpatialServices.GetSpatialTypeName Method

 

Returns a value that indicates the spatial type name of the given value.

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

NameDescription
System_CAPS_pubmethodGetSpatialTypeName(DbGeography)

Returns a value that indicates the spatial type name of the given DbGeography value.

System_CAPS_pubmethodGetSpatialTypeName(DbGeometry)

Returns a value that indicates the spatial type name of the given DbGeometry value.


DbSpatialServices.GetSpatialTypeName Method (DbGeography)

Returns a value that indicates the spatial type name of the given DbGeography value.

public abstract string GetSpatialTypeName(
	DbGeography geographyValue
)

Parameters

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

The geography value.

Return Value

Type: System.String

The spatial type name of the given DbGeography value.

Exception Condition
ArgumentNullException

geographyValue is null.

ArgumentException

geographyValue is not compatible with this spatial services implementation.


DbSpatialServices.GetSpatialTypeName Method (DbGeometry)

Returns a value that indicates the spatial type name of the given DbGeometry value.

public abstract string GetSpatialTypeName(
	DbGeometry geometryValue
)

Parameters

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

The geometry value.

Return Value

Type: System.String

The spatial type name of the given DbGeometry value.

Exception Condition
ArgumentNullException

geometryValue is null.

ArgumentException

geometryValue is not compatible with this spatial services implementation.