Metodo DbSpatialServices.AsGml (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.]
Genera la rappresentazione GML (Geography Markup Language) di questo valore DbGeography.
Spazio dei nomi: System.Data.Entity.Spatial
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "Gml")> _
Public MustOverride Function AsGml ( _
geographyValue As DbGeography _
) As String
'Utilizzo
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
Parametri
- geographyValue
Tipo: System.Data.Entity.Spatial.DbGeography
Valore geografico per cui è necessario generare la rappresentazione GML.
Valore restituito
Tipo: System.String
Stringa che contiene la rappresentazione GML di questo valore DbGeography.
Eccezioni
Eccezione | Condizione |
---|---|
ArgumentNullException | geographyValue è null. |
ArgumentException | geographyValue non è compatibile con l'implementazione spaziale dei servizi. |