Metodo SqlSpatialServices.GetElementCount (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 elementi nel valore DbGeography specificato, se rappresenta una raccolta di valori geografici.
Spazio dei nomi: System.Data.Entity.SqlServer
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Sintassi
'Dichiarazione
Public Overrides Function GetElementCount ( _
geographyValue As DbGeography _
) As Nullable(Of Integer)
'Utilizzo
Dim instance As SqlSpatialServices
Dim geographyValue As DbGeography
Dim returnValue As Nullable(Of Integer)
returnValue = instance.GetElementCount(geographyValue)
public override Nullable<int> GetElementCount(
DbGeography geographyValue
)
public:
virtual Nullable<int> GetElementCount(
DbGeography^ geographyValue
) override
abstract GetElementCount :
geographyValue:DbGeography -> Nullable<int>
override GetElementCount :
geographyValue:DbGeography -> Nullable<int>
public override function GetElementCount(
geographyValue : DbGeography
) : Nullable<int>
Parametri
- geographyValue
Tipo: System.Data.Entity.Spatial.DbGeography
Valore geografico che non deve rappresentare una raccolta di valori geografici.
Valore restituito
Tipo: System.Nullable<Int32>
Numero di elementi in geographyValue, se rappresenta una raccolta di altri valori geografici. In caso contrario, Null.