次の方法で共有


ObjectQuery<T>.Intersect メソッド

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

このクエリ ビルダー メソッドは、このクエリと指定された他のクエリの両方に含まれる結果を返す新しいクエリを作成します。

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

構文

'宣言
Public Function Intersect ( _
    query As ObjectQuery(Of T) _
) As ObjectQuery(Of T)
'使用
Dim instance As ObjectQuery 
Dim query As ObjectQuery(Of T)
Dim returnValue As ObjectQuery(Of T)

returnValue = instance.Intersect(query)
public ObjectQuery<T> Intersect(
    ObjectQuery<T> query
)
public:
ObjectQuery<T>^ Intersect(
    ObjectQuery<T>^ query
)
member Intersect : 
        query:ObjectQuery<'T> -> ObjectQuery<'T> 
public function Intersect(
    query : ObjectQuery<T>
) : ObjectQuery<T>

パラメーター

戻り値

型 : System.Data.Entity.Core.Objects.ObjectQuery<T>
新しい ObjectQuery インスタンス。

例外

例外 状態
ArgumentNullException

query パラメーターが null の場合。

参照

参照

ObjectQuery<T> クラス

System.Data.Entity.Core.Objects 名前空間