Condividi tramite


Metodo DbSpatialServices.Union (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 l'unione di due valori DbGeometry.

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

Sintassi

'Dichiarazione
Public MustOverride Function Union ( _
    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.Union(geometryValue, _
    otherGeometry)
public abstract DbGeometry Union(
    DbGeometry geometryValue,
    DbGeometry otherGeometry
)
public:
virtual DbGeometry^ Union(
    DbGeometry^ geometryValue, 
    DbGeometry^ otherGeometry
) abstract
abstract Union : 
        geometryValue:DbGeometry * 
        otherGeometry:DbGeometry -> DbGeometry
public abstract function Union(
    geometryValue : DbGeometry, 
    otherGeometry : DbGeometry
) : DbGeometry

Parametri

Valore restituito

Tipo: System.Data.Entity.Spatial.DbGeometry
Nuovo valore DbGeometry che rappresenta l'unione di 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 Union

Spazio dei nomi System.Data.Entity.Spatial