ObjectQuery.IQueryable.ElementType 属性
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
获取此查询实例的结果元素类型。
命名空间: System.Data.Entity.Core.Objects
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private ReadOnly Property ElementType As Type
Implements IQueryable.ElementType
Get
用法
Dim instance As ObjectQuery
Dim value As Type
value = CType(instance, IQueryable).ElementType
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
Type IQueryable.ElementType { get; }
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual property Type^ ElementType {
Type^ get () sealed = IQueryable::ElementType::get;
}
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract ElementType : Type
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override ElementType : Type
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
属性值
类型:System.Type