Condividi tramite


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

Restituisce il numero di punti nel valore DbGeometry 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 ( _
    geometryValue As DbGeometry _
) As Nullable(Of Integer)
'Utilizzo
Dim instance As DbSpatialServices 
Dim geometryValue As DbGeometry 
Dim returnValue As Nullable(Of Integer)

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

Parametri

Valore restituito

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

Eccezioni

Eccezione Condizione
ArgumentNullException

geometryValue è null.

ArgumentException

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

Vedere anche

Riferimento

DbSpatialServices Classe

Overload GetPointCount

Spazio dei nomi System.Data.Entity.Spatial