共用方式為


DbSpatialServices.GeographyFromGml 方法 (String)

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

根據指定的地理標記語言 (GML) 值,建立新的 DbGeography 值。

命名空間:  System.Data.Entity.Spatial
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "Gml")> _
Public MustOverride Function GeographyFromGml ( _
    geographyMarkup As String _
) As DbGeography
'用途
Dim instance As DbSpatialServices 
Dim geographyMarkup As String 
Dim returnValue As DbGeography 

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

參數

  • geographyMarkup
    類型:System.String
    包含地理位置值之幾何標記語言 (GML) 表示的字串。

傳回值

類型:System.Data.Entity.Spatial.DbGeography
新的 DbGeography 值,由具有預設 DbGeography 座標系統識別項 (SRID) (DefaultCoordinateSystemId) 的 GML 值所定義。

請參閱

參考

DbSpatialServices 類別

GeographyFromGml 多載

System.Data.Entity.Spatial 命名空間