DbSpatialServices.CreateGeometry Method (DbSpatialServices, Object)

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

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: