DbSpatialServices.CreateWellKnownValue 方法
定义
创建已知值的实例。Creates an instance of the well-known value.
重载
| CreateWellKnownValue(DbGeography) |
使用一或两个标准已知空间格式,创建表示指定 DbGeographyWellKnownValue 值的 DbGeography 实例。Creates an instance of DbGeographyWellKnownValue that represents the specified DbGeography value using one or both of the standard well-known spatial formats. |
| CreateWellKnownValue(DbGeometry) |
使用一或两个标准已知空间格式,创建表示指定 DbGeometryWellKnownValue 值的 DbGeometry 实例。Creates an instance of DbGeometryWellKnownValue that represents the specified DbGeometry value using one or both of the standard well-known spatial formats. |
CreateWellKnownValue(DbGeography)
使用一或两个标准已知空间格式,创建表示指定 DbGeographyWellKnownValue 值的 DbGeography 实例。Creates an instance of DbGeographyWellKnownValue that represents the specified DbGeography value using one or both of the standard well-known spatial formats.
public:
abstract System::Data::Spatial::DbGeographyWellKnownValue ^ CreateWellKnownValue(System::Data::Spatial::DbGeography ^ geographyValue);
public abstract System.Data.Spatial.DbGeographyWellKnownValue CreateWellKnownValue (System.Data.Spatial.DbGeography geographyValue);
abstract member CreateWellKnownValue : System.Data.Spatial.DbGeography -> System.Data.Spatial.DbGeographyWellKnownValue
Public MustOverride Function CreateWellKnownValue (geographyValue As DbGeography) As DbGeographyWellKnownValue
参数
- geographyValue
- DbGeography
地理值。The geography value.
返回
作为新 DbGeographyWellKnownValue 的 geographyValue 的已知表示形式。The well-known representation of geographyValue, as a new DbGeographyWellKnownValue.
例外
geographyValue
geographyValue
适用于
CreateWellKnownValue(DbGeometry)
使用一或两个标准已知空间格式,创建表示指定 DbGeometryWellKnownValue 值的 DbGeometry 实例。Creates an instance of DbGeometryWellKnownValue that represents the specified DbGeometry value using one or both of the standard well-known spatial formats.
public:
abstract System::Data::Spatial::DbGeometryWellKnownValue ^ CreateWellKnownValue(System::Data::Spatial::DbGeometry ^ geometryValue);
public abstract System.Data.Spatial.DbGeometryWellKnownValue CreateWellKnownValue (System.Data.Spatial.DbGeometry geometryValue);
abstract member CreateWellKnownValue : System.Data.Spatial.DbGeometry -> System.Data.Spatial.DbGeometryWellKnownValue
Public MustOverride Function CreateWellKnownValue (geometryValue As DbGeometry) As DbGeometryWellKnownValue
参数
- geometryValue
- DbGeometry
几何值。The geometry value.
返回
作为新 DbGeometryWellKnownValue 的 geometryValue 的已知表示形式。The well-known representation of geometryValue, as a new DbGeometryWellKnownValue.
例外
geometryValue
geometryValue