DbSpatialServices.CreateGeography Method (DbSpatialServices, Object)

.NET Framework (current version)
 

This method is intended for use by derived implementations of GeographyFromProviderValue 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 DbGeography CreateGeography(
	DbSpatialServices spatialServices,
	object providerValue
)

Parameters

spatialServices
Type: System.Data.Spatial.DbSpatialServices

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

providerValue
Type: System.Object

The provider value.

Return Value

Type: System.Data.Spatial.DbGeography

A new DbGeography 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: