Condividi tramite


Metodo DbSpatialServices.Difference (DbGeometry, DbGeometry)

[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 DbGeometry.

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

Sintassi

'Dichiarazione
Public MustOverride Function Difference ( _
    geometryValue As DbGeometry, _
    otherGeometry As DbGeometry _
) As DbGeometry
'Utilizzo
Dim instance As DbSpatialServices 
Dim geometryValue As DbGeometry 
Dim otherGeometry As DbGeometry 
Dim returnValue As DbGeometry 

returnValue = instance.Difference(geometryValue, _
    otherGeometry)
public abstract DbGeometry Difference(
    DbGeometry geometryValue,
    DbGeometry otherGeometry
)
public:
virtual DbGeometry^ Difference(
    DbGeometry^ geometryValue, 
    DbGeometry^ otherGeometry
) abstract
abstract Difference : 
        geometryValue:DbGeometry * 
        otherGeometry:DbGeometry -> DbGeometry
public abstract function Difference(
    geometryValue : DbGeometry, 
    otherGeometry : DbGeometry
) : DbGeometry

Parametri

Valore restituito

Tipo: System.Data.Entity.Spatial.DbGeometry
Nuovo valore DbGeometry che rappresenta la differenza tra geometryValue e otherGeometry.

Eccezioni

Eccezione Condizione
ArgumentNullException

geometryValue o otherGeometry è null.

ArgumentException

geometryValue o otherGeometry non è compatibile con l'implementazione spaziale dei servizi.

Vedere anche

Riferimento

DbSpatialServices Classe

Overload Difference

Spazio dei nomi System.Data.Entity.Spatial