次の方法で共有


DbGeography.FromText メソッド (String)

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

指定された既知のテキスト値に基づいて新しい DbGeography 値を作成します。

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

構文

'宣言
Public Shared Function FromText ( _
    wellKnownText As String _
) As DbGeography
'使用
Dim wellKnownText As String 
Dim returnValue As DbGeography 

returnValue = DbGeography.FromText(wellKnownText)
public static DbGeography FromText(
    string wellKnownText
)
public:
static DbGeography^ FromText(
    String^ wellKnownText
)
static member FromText : 
        wellKnownText:string -> DbGeography
public static function FromText(
    wellKnownText : String
) : DbGeography

パラメーター

  • wellKnownText
    型 : System.String
    geography 値の既知のテキスト表現を含む文字列。

戻り値

型 : System.Data.Entity.Spatial.DbGeography
既定の地理の座標系識別子 (SRID) (DefaultCoordinateSystemId) で既知のテキスト値によって定義される新しい DbGeography 値。

参照

参照

DbGeography クラス

FromText オーバーロード

System.Data.Entity.Spatial 名前空間