SqlDateTime.Explicit Operator

定義

パラメーターを SqlDateTime 構造体との間で変換します。

オーバーロード

名前 説明
Explicit(SqlDateTime to DateTime)

SqlDateTime構造体をDateTime構造体に変換します。

Explicit(SqlString to SqlDateTime)

SqlString パラメーターをSqlDateTimeに変換します。

Explicit(SqlDateTime to DateTime)

ソース:
SQLDateTime.cs
ソース:
SQLDateTime.cs
ソース:
SQLDateTime.cs
ソース:
SQLDateTime.cs
ソース:
SQLDateTime.cs

SqlDateTime構造体をDateTime構造体に変換します。

public:
 static explicit operator DateTime(System::Data::SqlTypes::SqlDateTime x);
public static explicit operator DateTime(System.Data.SqlTypes.SqlDateTime x);
static member op_Explicit : System.Data.SqlTypes.SqlDateTime -> DateTime
Public Shared Narrowing Operator CType (x As SqlDateTime) As DateTime

パラメーター

x
SqlDateTime

SqlDateTime 構造。

返品

DateTimeプロパティとDate プロパティに、指定されたTimeOfDay構造体のValue プロパティと同じ日付と時刻の値が含まれるSqlDateTime オブジェクト。

注釈

この演算子の同等のメソッドは次のようになります。 SqlDateTime.Value

こちらもご覧ください

適用対象

Explicit(SqlString to SqlDateTime)

ソース:
SQLDateTime.cs
ソース:
SQLDateTime.cs
ソース:
SQLDateTime.cs
ソース:
SQLDateTime.cs
ソース:
SQLDateTime.cs

SqlString パラメーターをSqlDateTimeに変換します。

public:
 static explicit operator System::Data::SqlTypes::SqlDateTime(System::Data::SqlTypes::SqlString x);
public static explicit operator System.Data.SqlTypes.SqlDateTime(System.Data.SqlTypes.SqlString x);
static member op_Explicit : System.Data.SqlTypes.SqlString -> System.Data.SqlTypes.SqlDateTime
Public Shared Narrowing Operator CType (x As SqlString) As SqlDateTime

パラメーター

x
SqlString

SqlString です。

返品

SqlDateTime パラメーターで表される日時と等しいValueを持つSqlString構造体。 SqlStringが null の場合、新しく作成されたValue構造体のSqlDateTimeは null になります。

こちらもご覧ください

適用対象