ReadOnlyMetadataCollection<T>.Item 属性 (String)
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
使用指定的标识从此集合中获取一个项。
命名空间: 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.
参数
- identity
类型:System.String
属性值
类型:T
此集合中的一个项。