次の方法で共有


DbGeography.ElementCount プロパティ

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

この DbGeography 値が geography 値のコレクションを表す場合、その要素の数を取得します。 <returns>他の geography 値のコレクションを表す場合は、この geography 値の要素の数。それ以外の場合は null。</returns>

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

構文

'宣言
Public ReadOnly Property ElementCount As Nullable(Of Integer)
    Get
'使用
Dim instance As DbGeography 
Dim value As Nullable(Of Integer)

value = instance.ElementCount
public Nullable<int> ElementCount { get; }
public:
property Nullable<int> ElementCount {
    Nullable<int> get ();
}
member ElementCount : Nullable<int>
function get ElementCount () : Nullable<int>

プロパティ値

型 : System.Nullable<Int32>
この DbGeography 値の要素の数。

参照

参照

DbGeography クラス

System.Data.Entity.Spatial 名前空間