Condividi tramite


Metodo DbSpatialServices.GetCoordinateSystemId (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.]

Restituisce l'identificatore del sistema di coordinate del valore DbGeography specificato.

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

Sintassi

'Dichiarazione
Public MustOverride Function GetCoordinateSystemId ( _
    geographyValue As DbGeography _
) As Integer
'Utilizzo
Dim instance As DbSpatialServices 
Dim geographyValue As DbGeography 
Dim returnValue As Integer 

returnValue = instance.GetCoordinateSystemId(geographyValue)
public abstract int GetCoordinateSystemId(
    DbGeography geographyValue
)
public:
virtual int GetCoordinateSystemId(
    DbGeography^ geographyValue
) abstract
abstract GetCoordinateSystemId : 
        geographyValue:DbGeography -> int
public abstract function GetCoordinateSystemId(
    geographyValue : DbGeography
) : int

Parametri

Valore restituito

Tipo: System.Int32
Identificatore del sistema di coordinate del valore DbGeography specificato.

Eccezioni

Eccezione Condizione
ArgumentNullException

geographyValue è null.

ArgumentException

geographyValue non è compatibile con l'implementazione spaziale dei servizi.

Vedere anche

Riferimento

DbSpatialServices Classe

Overload GetCoordinateSystemId

Spazio dei nomi System.Data.Entity.Spatial