次の方法で共有


DbGeography.FromGml メソッド (String)

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

指定された Geography Markup Language (GML) 値に基づいて新しい DbGeography 値を作成します。

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

構文

'宣言
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "Gml")> _
Public Shared Function FromGml ( _
    geographyMarkup As String _
) As DbGeography
'使用
Dim geographyMarkup As String 
Dim returnValue As DbGeography 

returnValue = DbGeography.FromGml(geographyMarkup)
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Gml")]
public static DbGeography FromGml(
    string geographyMarkup
)
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"Gml")]
public:
static DbGeography^ FromGml(
    String^ geographyMarkup
)
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Gml")>]
static member FromGml : 
        geographyMarkup:string -> DbGeography
public static function FromGml(
    geographyMarkup : String
) : DbGeography

パラメーター

  • geographyMarkup
    型 : System.String
    geography 値の Geography Markup Language (GML) 表現を含む文字列。

戻り値

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

参照

参照

DbGeography クラス

FromGml オーバーロード

System.Data.Entity.Spatial 名前空間