Condividi tramite


Metodo DbSpatialServices.GetSpatialTypeName (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 un valore che indica il nome del tipo spaziale del valore DbGeography specificato.

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

Sintassi

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

returnValue = instance.GetSpatialTypeName(geographyValue)
public abstract string GetSpatialTypeName(
    DbGeography geographyValue
)
public:
virtual String^ GetSpatialTypeName(
    DbGeography^ geographyValue
) abstract
abstract GetSpatialTypeName : 
        geographyValue:DbGeography -> string
public abstract function GetSpatialTypeName(
    geographyValue : DbGeography
) : String

Parametri

Valore restituito

Tipo: System.String
Nome del tipo spaziale 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 GetSpatialTypeName

Spazio dei nomi System.Data.Entity.Spatial