共用方式為


DbSpatialServices.GetPointCount 方法 (DbGeometry)

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

傳回指定的 DbGeometry 值中的點數 (如果它代表 linestring 或線型圓圈)。

命名空間:  System.Data.Entity.Spatial
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
Public MustOverride Function GetPointCount ( _
    geometryValue As DbGeometry _
) As Nullable(Of Integer)
'用途
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>

參數

傳回值

類型:System.Nullable<Int32>
所指 DbGeometry 值中的點數目。

例外狀況

例外狀況 條件
ArgumentNullException

geometryValue 為 null。

ArgumentException

geometryValue 與此空間服務實作不相容。

請參閱

參考

DbSpatialServices 類別

GetPointCount 多載

System.Data.Entity.Spatial 命名空間