DbGeography.FromText Metodo

Definizione

Crea un nuovo valore DbGeography basato sul valore di testo noto.

Overload

FromText(String)

Crea un nuovo valore DbGeography basato sul valore di testo noto.

FromText(String, Int32)

Crea un nuovo valore di DbGeography in base al valore di testo noto e all'identificatore del sistema di coordinate (SRID) specificati.

FromText(String)

Crea un nuovo valore DbGeography basato sul valore di testo noto.

public:
 static System::Data::Spatial::DbGeography ^ FromText(System::String ^ wellKnownText);
public static System.Data.Spatial.DbGeography FromText (string wellKnownText);
static member FromText : string -> System.Data.Spatial.DbGeography
Public Shared Function FromText (wellKnownText As String) As DbGeography

Parametri

wellKnownText
String

Stringa contenente la rappresentazione di testo nota del valore della posizione geografica.

Restituisce

Nuovo DbGeography definito dal valore di testo noto con l'identificatore del sistema di coordinate geografiche predefinito (SRID) (DefaultCoordinateSystemId).

Eccezioni

wellKnownText

Si applica a

FromText(String, Int32)

Crea un nuovo valore di DbGeography in base al valore di testo noto e all'identificatore del sistema di coordinate (SRID) specificati.

public:
 static System::Data::Spatial::DbGeography ^ FromText(System::String ^ wellKnownText, int coordinateSystemId);
public static System.Data.Spatial.DbGeography FromText (string wellKnownText, int coordinateSystemId);
static member FromText : string * int -> System.Data.Spatial.DbGeography
Public Shared Function FromText (wellKnownText As String, coordinateSystemId As Integer) As DbGeography

Parametri

wellKnownText
String

Stringa contenente la rappresentazione di testo nota del valore della posizione geografica.

coordinateSystemId
Int32

L'identificatore del sistema di coordinate che il nuovo valore di DbGeography deve utilizzare.

Restituisce

Nuovo valore DbGeography definito dal valore di testo noto con l'identificatore del sistema di coordinate specificato.

Eccezioni

wellKnownText

coordinateSystemId

Si applica a