次の方法で共有


ReadOnlyMetadataCollection<T>.Item プロパティ (String)

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

指定された ID を使用して、このコレクションから項目を取得します。

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

構文

'宣言
Public Overridable ReadOnly Default Property Item ( _
    identity As String _
) As T
    Get
'使用
Dim instance As ReadOnlyMetadataCollection 
Dim identity As String 
Dim value As T

value = instance(identity)
public virtual T this[
    string identity
] { get; }
public:
virtual property T default[String^ identity] {
    T get (String^ identity);
}
abstract Item : 'T
override Item : 'T
JScript supports the use of indexed properties, but not the declaration of new ones.

パラメーター

プロパティ値

型 : T
このコレクションから取得された項目。

参照

参照

ReadOnlyMetadataCollection<T> クラス

Item オーバーロード

System.Data.Entity.Core.Metadata.Edm 名前空間