SqlDateTime.Explicit 演算子

定義

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

オーバーロード

Explicit(SqlDateTime to DateTime)

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

Explicit(SqlString to SqlDateTime)

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

Explicit(SqlDateTime to DateTime)

ソース:
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

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

パラメーター

戻り値

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

こちらもご覧ください

適用対象