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>
パラメーター
- geographyValue
型 : System.Data.Entity.Spatial.DbGeography
geography 値。ラインストリングおよび線形リングを表す必要はありません。
戻り値
型 : System.Nullable<Int32>
指定された DbGeography 値内のポイント数。
例外
例外 | 状態 |
---|---|
ArgumentNullException | geographyValue が null です。 |
ArgumentException | geographyValue は、この空間サービスの実装と互換性がありません。 |