Metodo DbSpatialServices.SpatialEquals (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.]
Determina se due valori DbGeography specificati sono spazialmente uguali.
Spazio dei nomi: System.Data.Entity.Spatial
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
Public MustOverride Function SpatialEquals ( _
geographyValue As DbGeography, _
otherGeography As DbGeography _
) As Boolean
'Utilizzo
Dim instance As DbSpatialServices
Dim geographyValue As DbGeography
Dim otherGeography As DbGeography
Dim returnValue As Boolean
returnValue = instance.SpatialEquals(geographyValue, _
otherGeography)
public abstract bool SpatialEquals(
DbGeography geographyValue,
DbGeography otherGeography
)
public:
virtual bool SpatialEquals(
DbGeography^ geographyValue,
DbGeography^ otherGeography
) abstract
abstract SpatialEquals :
geographyValue:DbGeography *
otherGeography:DbGeography -> bool
public abstract function SpatialEquals(
geographyValue : DbGeography,
otherGeography : DbGeography
) : boolean
Parametri
- geographyValue
Tipo: System.Data.Entity.Spatial.DbGeography
Primo valore geografico da confrontare ai fini dell'uguaglianza.
- otherGeography
Tipo: System.Data.Entity.Spatial.DbGeography
Secondo valore geografico da confrontare ai fini dell'uguaglianza.
Valore restituito
Tipo: System.Boolean
true se geographyValue è spazialmente uguale a geographyValue. In caso contrario, false.
Eccezioni
Eccezione | Condizione |
---|---|
ArgumentNullException | geographyValue o otherGeography è null. |
ArgumentException | geographyValue o otherGeography non è compatibile con l'implementazione spaziale dei servizi. |