次の方法で共有


DbSpatialServices.GetPointCount メソッド (DbGeography)

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

指定した DbGeography 値がラインストリングまたは線形リングを表す場合、その値に含まれるポイント数を返します。

名前空間:  System.Data.Entity.Spatial
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Public MustOverride Function GetPointCount ( _
    geographyValue As DbGeography _
) As Nullable(Of Integer)
'使用
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>

パラメーター

戻り値

型 : System.Nullable<Int32>
指定された DbGeography 値内のポイント数。

例外

例外 状態
ArgumentNullException

geographyValue が null です。

ArgumentException

geographyValue は、この空間サービスの実装と互換性がありません。

参照

参照

DbSpatialServices クラス

GetPointCount オーバーロード

System.Data.Entity.Spatial 名前空間