DbExpressionBuilder.Intersect(DbExpression, DbExpression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個新值 DbIntersectExpression ,計算左集合與右集合參數的交集。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbIntersectExpression ^ Intersect(System::Data::Common::CommandTrees::DbExpression ^ left, System::Data::Common::CommandTrees::DbExpression ^ right);
public static System.Data.Common.CommandTrees.DbIntersectExpression Intersect(this System.Data.Common.CommandTrees.DbExpression left, System.Data.Common.CommandTrees.DbExpression right);
static member Intersect : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbIntersectExpression
<Extension()>
Public Function Intersect (left As DbExpression, right As DbExpression) As DbIntersectExpression
參數
- left
- DbExpression
一個定義左集合論元的表達式。
- right
- DbExpression
一個定義正確集合參數的表達式。
傳回
一個新的 DbIntersectExpression,代表左參數與右參數的交集。
例外狀況
left 或 right 為空值。
在 或 right之間不存在left共同的集合結果類型。