共用方式為


EntityFunctions.DiffMicroseconds 方法

定義

叫用標準 DiffMicroseconds 函式。 如需標準 DiffMicroseconds 函式的資訊,請參閱日期及時間標準函式

多載

DiffMicroseconds(Nullable<TimeSpan>, Nullable<TimeSpan>)

叫用標準 DiffMicroseconds 函式。 如需標準 DiffMicroseconds 函式的資訊,請參閱日期及時間標準函式

DiffMicroseconds(Nullable<DateTime>, Nullable<DateTime>)

叫用標準 DiffMicroseconds 函式。 如需標準 DiffMicroseconds 函式的資訊,請參閱日期及時間標準函式

DiffMicroseconds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

叫用標準 DiffMicroseconds 函式。 如需標準 DiffMicroseconds 函式的資訊,請參閱日期及時間標準函式

備註

您無法直接呼叫此函式。 此函式只能出現在 LINQ to Entities 查詢中。

此函式會轉譯為資料庫中的對應函式。

DiffMicroseconds(Nullable<TimeSpan>, Nullable<TimeSpan>)

叫用標準 DiffMicroseconds 函式。 如需標準 DiffMicroseconds 函式的資訊,請參閱日期及時間標準函式

public:
 static Nullable<int> DiffMicroseconds(Nullable<TimeSpan> timeValue1, Nullable<TimeSpan> timeValue2);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMicroseconds")]
public static int? DiffMicroseconds (TimeSpan? timeValue1, TimeSpan? timeValue2);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMicroseconds")>]
static member DiffMicroseconds : Nullable<TimeSpan> * Nullable<TimeSpan> -> Nullable<int>
Public Shared Function DiffMicroseconds (timeValue1 As Nullable(Of TimeSpan), timeValue2 As Nullable(Of TimeSpan)) As Nullable(Of Integer)

參數

timeValue1
Nullable<TimeSpan>

有效的時間範圍。

timeValue2
Nullable<TimeSpan>

有效的時間範圍。

傳回

timeValue1timeValue2 期間的毫秒數。

屬性

備註

您無法直接呼叫此函式。 此函式只能出現在 LINQ to Entities 查詢中。

此函式會轉譯為資料庫中的對應函式。

適用於

DiffMicroseconds(Nullable<DateTime>, Nullable<DateTime>)

叫用標準 DiffMicroseconds 函式。 如需標準 DiffMicroseconds 函式的資訊,請參閱日期及時間標準函式

public:
 static Nullable<int> DiffMicroseconds(Nullable<DateTime> timeValue1, Nullable<DateTime> timeValue2);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMicroseconds")]
public static int? DiffMicroseconds (DateTime? timeValue1, DateTime? timeValue2);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMicroseconds")>]
static member DiffMicroseconds : Nullable<DateTime> * Nullable<DateTime> -> Nullable<int>
Public Shared Function DiffMicroseconds (timeValue1 As Nullable(Of DateTime), timeValue2 As Nullable(Of DateTime)) As Nullable(Of Integer)

參數

timeValue1
Nullable<DateTime>

有效的日期。

timeValue2
Nullable<DateTime>

有效的日期。

傳回

timeValue1timeValue2 期間的毫秒數。

屬性

備註

您無法直接呼叫此函式。 此函式只能出現在 LINQ to Entities 查詢中。

此函式會轉譯為資料庫中的對應函式。

適用於

DiffMicroseconds(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

叫用標準 DiffMicroseconds 函式。 如需標準 DiffMicroseconds 函式的資訊,請參閱日期及時間標準函式

public:
 static Nullable<int> DiffMicroseconds(Nullable<DateTimeOffset> timeValue1, Nullable<DateTimeOffset> timeValue2);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMicroseconds")]
public static int? DiffMicroseconds (DateTimeOffset? timeValue1, DateTimeOffset? timeValue2);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "DiffMicroseconds")>]
static member DiffMicroseconds : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> -> Nullable<int>
Public Shared Function DiffMicroseconds (timeValue1 As Nullable(Of DateTimeOffset), timeValue2 As Nullable(Of DateTimeOffset)) As Nullable(Of Integer)

參數

timeValue1
Nullable<DateTimeOffset>

有效的日期時間位移。

timeValue2
Nullable<DateTimeOffset>

有效的日期時間位移。

傳回

timeValue1timeValue2 期間的毫秒數。

屬性

備註

您無法直接呼叫此函式。 此函式只能出現在 LINQ to Entities 查詢中。

此函式會轉譯為資料庫中的對應函式。

適用於