次の方法で共有


DbSpatialServices.CreateWellKnownValue メソッド (DbGeography)

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

標準の既知の空間形式のいずれかまたは両方を使用して、指定した DbGeographyWellKnownValue 値を表す DbGeography のインスタンスを作成します。

名前空間:  System.Data.Entity.Spatial
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Public MustOverride Function CreateWellKnownValue ( _
    geographyValue As DbGeography _
) As DbGeographyWellKnownValue
'使用
Dim instance As DbSpatialServices 
Dim geographyValue As DbGeography 
Dim returnValue As DbGeographyWellKnownValue 

returnValue = instance.CreateWellKnownValue(geographyValue)
public abstract DbGeographyWellKnownValue CreateWellKnownValue(
    DbGeography geographyValue
)
public:
virtual DbGeographyWellKnownValue^ CreateWellKnownValue(
    DbGeography^ geographyValue
) abstract
abstract CreateWellKnownValue : 
        geographyValue:DbGeography -> DbGeographyWellKnownValue
public abstract function CreateWellKnownValue(
    geographyValue : DbGeography
) : DbGeographyWellKnownValue

パラメーター

戻り値

型 : System.Data.Entity.Spatial.DbGeographyWellKnownValue
新しい DbGeographyWellKnownValue としての geographyValue の既知の表現。

例外

例外 状態
ArgumentNullException

geographyValue が null です。

ArgumentException

geographyValue は、この空間サービスの実装と互換性がありません。

参照

参照

DbSpatialServices クラス

CreateWellKnownValue オーバーロード

System.Data.Entity.Spatial 名前空間