次の方法で共有


DbSpatialServices.AsGml メソッド (DbGeography)

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

この DbGeography 値の Geography Markup Language (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 名前空間