SqlDateTime.Explicit Operator
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
パラメーターを 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
パラメーター
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
パラメーター
返品
SqlString パラメーターで表される日時と等しいValueを持つSqlDateTime構造体。
SqlStringが null の場合、新しく作成されたSqlDateTime構造体のValueは null になります。