DbSpatialServices.CreateGeography(DbSpatialServices, Object) 方法

定义

此方法旨在供派生实现 GeographyFromProviderValue(Object) 在对指定提供程序值进行适当验证后使用,以确保它适合与派生实现一起使用。

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

参数

spatialServices
DbSpatialServices

返回 DbGeography 值的空间服务实例将取决于其空间功能的实现。

providerValue
Object

提供程序值。

返回

包含指定DbGeography且使用指定providerValue作为空间实现的新spatialServices实例。

例外

spatialServices providerValue

适用于