Condividi tramite


Metodo DbGeography.FromText (String, Int32)

[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 WKT e all'identificatore del sistema di coordinate (SRID) specificati.

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

Sintassi

'Dichiarazione
Public Shared Function FromText ( _
    wellKnownText As String, _
    coordinateSystemId As Integer _
) As DbGeography
'Utilizzo
Dim wellKnownText As String 
Dim coordinateSystemId As Integer 
Dim returnValue As DbGeography 

returnValue = DbGeography.FromText(wellKnownText, _
    coordinateSystemId)
public static DbGeography FromText(
    string wellKnownText,
    int coordinateSystemId
)
public:
static DbGeography^ FromText(
    String^ wellKnownText, 
    int coordinateSystemId
)
static member FromText : 
        wellKnownText:string * 
        coordinateSystemId:int -> DbGeography
public static function FromText(
    wellKnownText : String, 
    coordinateSystemId : int
) : DbGeography

Parametri

  • wellKnownText
    Tipo: System.String
    Stringa che contiene una rappresentazione WKT del valore geografico.
  • coordinateSystemId
    Tipo: System.Int32
    Identificatore del sistema di coordinate che deve essere utilizzato dal nuovo valore DbGeography.

Valore restituito

Tipo: System.Data.Entity.Spatial.DbGeography
Nuovo valore DbGeography definito dal valore WKT con l'identificatore del sistema di coordinate specificato.

Vedere anche

Riferimento

DbGeography Classe

Overload FromText

Spazio dei nomi System.Data.Entity.Spatial