共用方式為


DbSpatialServices.AsGml 方法 (DbGeography)

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

產生此 DbGeography 值的地理標記語言 (GML) 表示。

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

語法

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

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

參數

傳回值

類型:System.String
包含此 DbGeography 值之 GML 表示的字串。

例外狀況

例外狀況 條件
ArgumentNullException

geographyValue 為 null。

ArgumentException

geographyValue 與此空間服務實作不相容。

請參閱

參考

DbSpatialServices 類別

AsGml 多載

System.Data.Entity.Spatial 命名空間