EdmFunctions.CreateDateTimeOffset Metoda

Definicja

Tworzy , DbFunctionExpression który wywołuje kanoniczną funkcję "CreateDateTimeOffset" z określonymi argumentami. second Musi mieć typ wyniku Edm.Double, podczas gdy wszystkie inne argumenty muszą mieć typ wyniku Edm.Int32. Typ wyniku wyrażenia to Edm.DateTimeOffset.

public:
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ CreateDateTimeOffset(System::Data::Common::CommandTrees::DbExpression ^ year, System::Data::Common::CommandTrees::DbExpression ^ month, System::Data::Common::CommandTrees::DbExpression ^ day, System::Data::Common::CommandTrees::DbExpression ^ hour, System::Data::Common::CommandTrees::DbExpression ^ minute, System::Data::Common::CommandTrees::DbExpression ^ second, System::Data::Common::CommandTrees::DbExpression ^ timeZoneOffset);
public static System.Data.Common.CommandTrees.DbFunctionExpression CreateDateTimeOffset (System.Data.Common.CommandTrees.DbExpression year, System.Data.Common.CommandTrees.DbExpression month, System.Data.Common.CommandTrees.DbExpression day, System.Data.Common.CommandTrees.DbExpression hour, System.Data.Common.CommandTrees.DbExpression minute, System.Data.Common.CommandTrees.DbExpression second, System.Data.Common.CommandTrees.DbExpression timeZoneOffset);
static member CreateDateTimeOffset : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
Public Function CreateDateTimeOffset (year As DbExpression, month As DbExpression, day As DbExpression, hour As DbExpression, minute As DbExpression, second As DbExpression, timeZoneOffset As DbExpression) As DbFunctionExpression

Parametry

year
DbExpression

Wyrażenie, które dostarcza wartość roku dla nowego wystąpienia DateTimeOffset.

month
DbExpression

Wyrażenie, które dostarcza wartość miesiąca dla nowego wystąpienia DateTimeOffset.

day
DbExpression

Wyrażenie, które dostarcza wartość dnia dla nowego wystąpienia dateTimeOffset.

hour
DbExpression

Wyrażenie, które dostarcza wartość godziny dla nowego wystąpienia DateTimeOffset.

minute
DbExpression

Wyrażenie, które dostarcza wartość minuty dla nowego wystąpienia DateTimeOffset.

second
DbExpression

Wyrażenie, które dostarcza drugą wartość dla nowego wystąpienia dateTimeOffset.

timeZoneOffset
DbExpression

Wyrażenie, które podaje liczbę minut w wartości przesunięcia strefy czasowej dla nowego wystąpienia dateTimeOffset.

Zwraca

DbFunctionExpression

Nowy dbFunctionExpression, który zwraca nowy zestaw DateTimeOffset na podstawie określonych wartości.

Wyjątki

year, month , , , lub to day hour minute second timeZoneOffset null .

year, month , , , , lub jest day hour minute second timeZoneOffset nieprawidłowy.

Dotyczy