共用方式為


DbSpatialServices.CreateGeometry(DbSpatialServices, Object) 方法

定義

這個方法的目的是在適當驗證指定的提供者值之後,供 GeometryFromProviderValue(Object) 的衍生實作使用,以確保它適合與衍生實作搭配使用。

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

參數

spatialServices
DbSpatialServices

傳回 DbGeometry值的空間服務執行個體,將視它的空間功能的實作而定。

providerValue
Object

提供者值。

傳回

包含指定 providerValue 的新 DbGeometry 實例,並使用指定的 spatialServices 作為其空間實作。

適用於