DbSpatialServices.AsText メソッド (DbGeography)
[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]
指定された DbGeography 値の既知のテキスト表現を取得します。 この値は、ポイントの Longitude と Latitude のみを含む必要があります。
名前空間: System.Data.Entity.Spatial
アセンブリ: EntityFramework (EntityFramework.dll 内)
構文
'宣言
Public MustOverride Function AsText ( _
geographyValue As DbGeography _
) As String
'使用
Dim instance As DbSpatialServices
Dim geographyValue As DbGeography
Dim returnValue As String
returnValue = instance.AsText(geographyValue)
public abstract string AsText(
DbGeography geographyValue
)
public:
virtual String^ AsText(
DbGeography^ geographyValue
) abstract
abstract AsText :
geographyValue:DbGeography -> string
public abstract function AsText(
geographyValue : DbGeography
) : String
パラメーター
- geographyValue
型 : System.Data.Entity.Spatial.DbGeography
既知のテキストを生成する必要がある geography 値。
戻り値
型 : System.String
geographyValue の既知のテキスト表現を含む文字列。
例外
例外 | 状態 |
---|---|
ArgumentNullException | geographyValue が null です。 |
ArgumentException | geographyValue は、この空間サービスの実装と互換性がありません。 |