DbSpatialServices.CreateGeometry Method (DbSpatialServices, Object)

.NET Framework (current version)
 

This method is intended for use by derived implementations of GeometryFromProviderValue after suitable validation of the specified provider value to ensure it is suitable for use with the derived implementation.

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

protected static DbGeometry CreateGeometry(
	DbSpatialServices spatialServices,
	object providerValue
)

Parameters

spatialServices
Type: System.Data.Spatial.DbSpatialServices

The spatial services instance that the returned DbGeometry value will depend on for its implementation of spatial functionality.

providerValue
Type: System.Object

A provider value.

Return Value

Type: System.Data.Spatial.DbGeometry

A new DbGeometry instance that contains the specified providerValue and uses the specified spatialServices as its spatial implementation.

Exception Condition
ArgumentNullException

spatialServicesproviderValue

.NET Framework
Available since 4.5
Return to top
Show: