Metodo DbSpatialServices.Buffer (DbGeography, Double)
[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.]
Crea un valore geografico che rappresenta tutti i punti minori o uguali alla distanza dal valore DbGeography specificato.
Spazio dei nomi: System.Data.Entity.Spatial
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
Public MustOverride Function Buffer ( _
geographyValue As DbGeography, _
distance As Double _
) As DbGeography
'Utilizzo
Dim instance As DbSpatialServices
Dim geographyValue As DbGeography
Dim distance As Double
Dim returnValue As DbGeography
returnValue = instance.Buffer(geographyValue, _
distance)
public abstract DbGeography Buffer(
DbGeography geographyValue,
double distance
)
public:
virtual DbGeography^ Buffer(
DbGeography^ geographyValue,
double distance
) abstract
abstract Buffer :
geographyValue:DbGeography *
distance:float -> DbGeography
public abstract function Buffer(
geographyValue : DbGeography,
distance : double
) : DbGeography
Parametri
- geographyValue
Tipo: System.Data.Entity.Spatial.DbGeography
Valore geografico.
- distance
Tipo: System.Double
Valore Double che specifica la distanza da geographyValue al buffer.
Valore restituito
Tipo: System.Data.Entity.Spatial.DbGeography
Crea un valore DbGeography che rappresenta tutti i punti minori o uguali alla distanza da geographyValue.
Eccezioni
Eccezione | Condizione |
---|---|
ArgumentNullException | geographyValue è null. |
ArgumentException | geographyValue non è compatibile con l'implementazione spaziale dei servizi. |