次の方法で共有


DbSpatialServices.GetElementCount メソッド

定義

オーバーロード

GetElementCount(DbGeometry)

特定の DbGeometry 値が geometry コレクションを表す場合、その値に含まれる要素の数を返します。

GetElementCount(DbGeography)

特定の DbGeography 値が geography コレクションを表す場合、その値に含まれる要素の数を返します。

GetElementCount(DbGeometry)

特定の DbGeometry 値が geometry コレクションを表す場合、その値に含まれる要素の数を返します。

public abstract Nullable<int> GetElementCount(System.Data.Entity.Spatial.DbGeometry geometryValue);
abstract member GetElementCount : System.Data.Entity.Spatial.DbGeometry -> Nullable<int>
Public MustOverride Function GetElementCount (geometryValue As DbGeometry) As Nullable(Of Integer)

パラメーター

geometryValue
DbGeometry

geometry 値。ジオメトリ コレクションを表す必要はありません。

戻り値

他の geometry 値のコレクションを表す場合は、geometryValue 内の要素の数。それ以外の場合は null。

例外

geometryValue が null です。

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

適用対象

GetElementCount(DbGeography)

特定の DbGeography 値が geography コレクションを表す場合、その値に含まれる要素の数を返します。

public abstract Nullable<int> GetElementCount(System.Data.Entity.Spatial.DbGeography geographyValue);
abstract member GetElementCount : System.Data.Entity.Spatial.DbGeography -> Nullable<int>
Public MustOverride Function GetElementCount (geographyValue As DbGeography) As Nullable(Of Integer)

パラメーター

geographyValue
DbGeography

geography 値。地理コレクションを表す必要はありません。

戻り値

geographyValue 内の要素の数 (他の geography 値のコレクションを表す場合)。それ以外の場合は null。

例外

geographyValue が null です。

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

適用対象