EdmFunctions.DiffMicroseconds(DbExpression, DbExpression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 DbFunctionExpression 一個,呼叫典型的「DiffMicroseconds」函式,並指定參數,每個參數必須有 DateTime、DateTimeOffset 或 Time 結果型別。 表達式的結果類型為Edm.Int32。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbFunctionExpression ^ DiffMicroseconds(System::Data::Common::CommandTrees::DbExpression ^ timeValue1, System::Data::Common::CommandTrees::DbExpression ^ timeValue2);
public static System.Data.Common.CommandTrees.DbFunctionExpression DiffMicroseconds(this System.Data.Common.CommandTrees.DbExpression timeValue1, System.Data.Common.CommandTrees.DbExpression timeValue2);
static member DiffMicroseconds : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function DiffMicroseconds (timeValue1 As DbExpression, timeValue2 As DbExpression) As DbFunctionExpression
參數
- timeValue1
- DbExpression
一個指定首次時間值參數的表達式。
- timeValue2
- DbExpression
一個指定第二個時間值參數的表達式。
傳回
一個新的 DbFunctionExpression,回傳與 之間的微timeValue1timeValue2秒數。