Aracılığıyla paylaş


EdmFunctions.CreateDateTimeOffset Yöntem

Tanım

Belirtilen bağımsız değişkenlerle kurallı 'CreateDateTimeOffset' işlevini çağıran bir DbFunctionExpression oluşturur. second Edm.Double sonuç türüne sahip olmalıdır, diğer tüm bağımsız değişkenler ise Edm.Int32 sonuç türüne sahip olmalıdır. İfadenin sonuç türü Edm.DateTimeOffset'tir.

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

Parametreler

year
DbExpression

Yeni DateTimeOffset örneğinin yıl değerini sağlayan ifade.

month
DbExpression

Yeni DateTimeOffset örneği için ay değerini sağlayan ifade.

day
DbExpression

Yeni DateTimeOffset örneğinin gün değerini sağlayan ifade.

hour
DbExpression

Yeni DateTimeOffset örneğinin saat değerini sağlayan ifade.

minute
DbExpression

Yeni DateTimeOffset örneği için dakika değeri sağlayan bir ifade.

second
DbExpression

Yeni DateTimeOffset örneği için ikinci değeri sağlayan ifade.

timeZoneOffset
DbExpression

Yeni DateTimeOffset örneğinin saat dilimi uzaklık değerinde dakika sayısını sağlayan ifade.

Döndürülenler

Belirtilen değerlere göre yeni bir DateTimeOffset döndüren yeni bir DbFunctionExpression.

Özel durumlar

year, , daymonth, hour, , minute, secondveya timeZoneOffset şeklindedirnull.

year, month, day, , hour, minute, secondveya timeZoneOffset geçersiz.

Şunlara uygulanır