SqlDateTime.Explicit Operator

Definicja

Konwertuje parametr na i z SqlDateTime struktury.

Przeciążenia

Explicit(SqlDateTime to DateTime)

Konwertuje SqlDateTime strukturę na DateTime strukturę.

Explicit(SqlString to SqlDateTime)

Konwertuje SqlString parametr na wartość SqlDateTime.

Explicit(SqlDateTime to DateTime)

Źródło:
SQLDateTime.cs
Źródło:
SQLDateTime.cs
Źródło:
SQLDateTime.cs

Konwertuje SqlDateTime strukturę na DateTime strukturę.

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

Parametry

x
SqlDateTime

Struktura SqlDateTime .

Zwraca

DateTime Obiekt, którego Date właściwości i TimeOfDay zawierają te same wartości daty i godziny co Value właściwość dostarczonej SqlDateTime struktury.

Uwagi

Równoważna metoda dla tego operatora to SqlDateTime.Value

Zobacz też

Dotyczy

Explicit(SqlString to SqlDateTime)

Źródło:
SQLDateTime.cs
Źródło:
SQLDateTime.cs
Źródło:
SQLDateTime.cs

Konwertuje SqlString parametr na wartość 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

Parametry

x
SqlString

Klasa SqlString.

Zwraca

SqlDateTime Struktura, której Value wartość jest równa dacie i godzinie reprezentowanej SqlString przez parametr . Jeśli wartość SqlString ma wartość null, Value nowo utworzona SqlDateTime struktura będzie mieć wartość null.

Zobacz też

Dotyczy