Share via


EdmFunctions.CreateDateTime Méthode

Définition

Crée un DbFunctionExpression qui appelle la fonction "CreateDateTime" canonique avec les arguments spécifiés. second doit avoir un type de résultat Edm.Double, tandis que tous les autres arguments doivent avoir un type de résultat Edm.Int32. Le type de résultat de l'expression est Edm.DateTime.

public:
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ CreateDateTime(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);
public static System.Data.Common.CommandTrees.DbFunctionExpression CreateDateTime (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);
static member CreateDateTime : 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 CreateDateTime (year As DbExpression, month As DbExpression, day As DbExpression, hour As DbExpression, minute As DbExpression, second As DbExpression) As DbFunctionExpression

Paramètres

year
DbExpression

Expression qui fournit la valeur « année » pour la nouvelle instance DateTime.

month
DbExpression

Expression qui fournit la valeur « mois » pour la nouvelle instance DateTime.

day
DbExpression

Expression qui fournit la valeur « jour » pour la nouvelle instance DateTime.

hour
DbExpression

Expression qui fournit la valeur « heure » pour la nouvelle instance DateTime.

minute
DbExpression

Expression qui fournit la valeur « minute » pour la nouvelle instance DateTime.

second
DbExpression

Expression qui fournit la valeur « seconde » pour la nouvelle instance DateTime.

Retours

Nouvelle DbFunctionExpression qui retourne un nouveau Datetime en fonction des valeurs spécifiées.

Exceptions

year, month, day, hour, minuteou second est null.

year, month, day, hourminute, ou second n’est pas valide.

S’applique à