SqlDateTime.Implicit(DateTime to SqlDateTime) SqlDateTime.Implicit(DateTime to SqlDateTime) SqlDateTime.Implicit(DateTime to SqlDateTime) SqlDateTime.Implicit(DateTime to SqlDateTime) Operator

定义

DateTime 结构转换为 SqlDateTime 结构。Converts a DateTime structure to a SqlDateTime structure.

public:
 static operator System::Data::SqlTypes::SqlDateTime(DateTime value);
public static implicit operator System.Data.SqlTypes.SqlDateTime (DateTime value);
static member op_Implicit : DateTime -> System.Data.SqlTypes.SqlDateTime
Public Shared Widening Operator CType (value As DateTime) As SqlDateTime

参数

value
DateTime DateTime DateTime DateTime

一个 DateTime 结构。A DateTime structure.

返回

一个 SqlDateTime 结构,其 Value 等于提供的 Date 结构的 TimeOfDayDateTime 属性的组合。A SqlDateTime structure whose Value is equal to the combined Date and TimeOfDay properties of the supplied DateTime structure.

适用于

另请参阅