Condividi tramite


Metodo DbGeography.FromGml (String)

[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.]

Crea un nuovo valore DbGeography in base al valore GML (Geography Markup Language) specificato.

Spazio dei nomi:  System.Data.Entity.Spatial
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "Gml")> _
Public Shared Function FromGml ( _
    geographyMarkup As String _
) As DbGeography
'Utilizzo
Dim geographyMarkup As String 
Dim returnValue As DbGeography 

returnValue = DbGeography.FromGml(geographyMarkup)
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Gml")]
public static DbGeography FromGml(
    string geographyMarkup
)
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"Gml")]
public:
static DbGeography^ FromGml(
    String^ geographyMarkup
)
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Gml")>]
static member FromGml : 
        geographyMarkup:string -> DbGeography
public static function FromGml(
    geographyMarkup : String
) : DbGeography

Parametri

  • geographyMarkup
    Tipo: System.String
    Stringa che contiene una rappresentazione GML (Geography Markup Language) del valore geografico.

Valore restituito

Tipo: System.Data.Entity.Spatial.DbGeography
Nuovo valore DbGeography definito dal valore GML con l'identificatore del sistema di coordinate geografico predefinito (SRID) (DefaultCoordinateSystemId).

Vedere anche

Riferimento

DbGeography Classe

Overload FromGml

Spazio dei nomi System.Data.Entity.Spatial