Condividi tramite


Metodo DbSpatialServices.Difference (DbGeography, 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.]

Calcola la differenza tra due valori DbGeography.

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

Sintassi

'Dichiarazione
Public MustOverride Function Difference ( _
    geographyValue As DbGeography, _
    otherGeography As DbGeography _
) As DbGeography
'Utilizzo
Dim instance As DbSpatialServices 
Dim geographyValue As DbGeography 
Dim otherGeography As DbGeography 
Dim returnValue As DbGeography 

returnValue = instance.Difference(geographyValue, _
    otherGeography)
public abstract DbGeography Difference(
    DbGeography geographyValue,
    DbGeography otherGeography
)
public:
virtual DbGeography^ Difference(
    DbGeography^ geographyValue, 
    DbGeography^ otherGeography
) abstract
abstract Difference : 
        geographyValue:DbGeography * 
        otherGeography:DbGeography -> DbGeography
public abstract function Difference(
    geographyValue : DbGeography, 
    otherGeography : DbGeography
) : DbGeography

Parametri

Valore restituito

Tipo: System.Data.Entity.Spatial.DbGeography
Nuovo valore DbGeography che rappresenta la differenza tra geographyValue e otherGeography.

Eccezioni

Eccezione Condizione
ArgumentNullException

geographyValue o otherGeography è null.

ArgumentException

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

Vedere anche

Riferimento

DbSpatialServices Classe

Overload Difference

Spazio dei nomi System.Data.Entity.Spatial