Metodo DbSpatialServices.AsText (DbGeography)
[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]
Ottiene la rappresentazione WKT (well-known text) del valore DbGeography specificato. Questo valore deve includere unicamente la longitudine e la latitudine dei punti.
Spazio dei nomi: System.Data.Entity.Spatial
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
Public MustOverride Function AsText ( _
geographyValue As DbGeography _
) As String
'Utilizzo
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
Parametri
- geographyValue
Tipo: System.Data.Entity.Spatial.DbGeography
Valore geografico per cui è necessario generare la rappresentazione WKT.
Valore restituito
Tipo: System.String
Stringa che contiene la rappresentazione WKT di geographyValue.
Eccezioni
Eccezione | Condizione |
---|---|
ArgumentNullException | geographyValue è null. |
ArgumentException | geographyValue non è compatibile con l'implementazione spaziale dei servizi. |