EdmFunctions.CreateDateTimeOffset メソッド

定義

指定した引数を使用して正規の 'CreateDateTimeOffset' 関数を呼び出す DbFunctionExpression を作成します。 second 結果の型は Edm.Double である必要があり、他のすべての引数の結果の型は Edm.Int32 である必要があります。 式の結果の型は 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

パラメーター

year
DbExpression

新しい DateTimeOffset インスタンスの年の値を提供する式。

month
DbExpression

新しい DateTimeOffset インスタンスの月の値を提供する式。

day
DbExpression

新しい DateTimeOffset インスタンスの日の値を提供する式。

hour
DbExpression

新しい DateTimeOffset インスタンスの時間値を提供する式。

minute
DbExpression

新しい DateTimeOffset インスタンスの分の値を提供する式。

second
DbExpression

新しい DateTimeOffset インスタンスの 2 番目の値を提供する式。

timeZoneOffset
DbExpression

新しい DateTimeOffset インスタンスのタイム ゾーン オフセット値の分数を指定する式。

返品

指定した値に基づいて新しい DateTimeOffset を返す新しい DbFunctionExpression。

例外

yearmonthdayhourminutesecond、または timeZoneOffsetnull

yearmonthdayhourminutesecond、または timeZoneOffset が無効です。

適用対象