Condividi tramite


Metodo DbSpatialServices.GetPointCount (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.]

Restituisce il numero di punti nel valore DbGeography specificato, se rappresenta una linea spezzata o un anello lineare.

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

Sintassi

'Dichiarazione
Public MustOverride Function GetPointCount ( _
    geographyValue As DbGeography _
) As Nullable(Of Integer)
'Utilizzo
Dim instance As DbSpatialServices 
Dim geographyValue As DbGeography 
Dim returnValue As Nullable(Of Integer)

returnValue = instance.GetPointCount(geographyValue)
public abstract Nullable<int> GetPointCount(
    DbGeography geographyValue
)
public:
virtual Nullable<int> GetPointCount(
    DbGeography^ geographyValue
) abstract
abstract GetPointCount : 
        geographyValue:DbGeography -> Nullable<int> 
public abstract function GetPointCount(
    geographyValue : DbGeography
) : Nullable<int>

Parametri

Valore restituito

Tipo: System.Nullable<Int32>
Numero di punti nel valore DbGeography specificato.

Eccezioni

Eccezione Condizione
ArgumentNullException

geographyValue è null.

ArgumentException

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

Vedere anche

Riferimento

DbSpatialServices Classe

Overload GetPointCount

Spazio dei nomi System.Data.Entity.Spatial