DbSpatialServices.CreateGeometry(DbSpatialServices, Object) Method

Definition

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

protected:
 static System::Data::Spatial::DbGeometry ^ CreateGeometry(System::Data::Spatial::DbSpatialServices ^ spatialServices, System::Object ^ providerValue);
protected static System.Data.Spatial.DbGeometry CreateGeometry (System.Data.Spatial.DbSpatialServices spatialServices, object providerValue);
static member CreateGeometry : System.Data.Spatial.DbSpatialServices * obj -> System.Data.Spatial.DbGeometry
Protected Shared Function CreateGeometry (spatialServices As DbSpatialServices, providerValue As Object) As DbGeometry

Parameters

spatialServices
DbSpatialServices

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

providerValue
Object

A provider value.

Returns

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

Exceptions

spatialServices providerValue

Applies to