SqlDateTime.Explicit Operator

定義

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

オーバーロード

名前 説明
Explicit(SqlDateTime to DateTime)

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

Explicit(SqlString to SqlDateTime)

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

Explicit(SqlDateTime to DateTime)

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 構造。

返品

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

注釈

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

こちらもご覧ください

適用対象

Explicit(SqlString to SqlDateTime)

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 です。

返品

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

こちらもご覧ください

適用対象