ObjectQuery.IListSource.ContainsListCollection 属性

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

获取一个值,该值指示此查询是否包含查询对象的集合。

命名空间:  System.Data.Entity.Core.Objects
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private ReadOnly Property ContainsListCollection As Boolean 
    Implements IListSource.ContainsListCollection 
    Get
用法
Dim instance As ObjectQuery 
Dim value As Boolean 

value = CType(instance, IListSource).ContainsListCollection
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
bool IListSource.ContainsListCollection { get; }
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual property bool ContainsListCollection {
    bool get () sealed = IListSource::ContainsListCollection::get;
}
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract ContainsListCollection : bool
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override ContainsListCollection : bool
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

属性值

类型:System.Boolean
如果此查询包含查询对象的集合,则为 true;否则为 false。

Implements

IListSource.ContainsListCollection

请参阅

参考

ObjectQuery 类

System.Data.Entity.Core.Objects 命名空间