EdmFunctions.CreateDateTimeOffset Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione 'CreateDateTimeOffset' canonica con gli argomenti specificati. second deve avere un tipo di risultato Edm.Double, mentre tutti gli altri argomenti devono avere un tipo di risultato Edm.Int32. Il tipo di risultato dell'espressione è 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

Parametri

year
DbExpression

Espressione che fornisce il valore year per la nuova istanza DateTimeOffset.

month
DbExpression

Espressione che fornisce il valore month per la nuova istanza DateTimeOffset.

day
DbExpression

Espressione che fornisce il valore day per la nuova istanza DateTimeOffset.

hour
DbExpression

Espressione che fornisce il valore hour per la nuova istanza DateTimeOffset.

minute
DbExpression

Espressione che fornisce il valore minuto per la nuova istanza DateTimeOffset.

second
DbExpression

Espressione che fornisce il secondo valore per la nuova istanza DateTimeOffset.

timeZoneOffset
DbExpression

Espressione che fornisce il numero di minuti nel valore di offset del fuso orario per la nuova istanza DateTimeOffset.

Valori restituiti

Nuovo DbFunctionExpression che restituisce un nuovo Oggetto DateTimeOffset in base ai valori specificati.

Eccezioni

year, month, hour, minute, , secondo timeZoneOffset è null. day

year, month, hour, minute, , secondo timeZoneOffset non è valido. day

Si applica a