Redigeeri

Jagamisviis:


SqlDateTime.Explicit Operator

Definition

Converts a parameter to and from a SqlDateTime structure.

Overloads

Explicit(SqlDateTime to DateTime)

Converts the SqlDateTime structure to a DateTime structure.

Explicit(SqlString to SqlDateTime)

Converts the SqlString parameter to a SqlDateTime.

Explicit(SqlDateTime to DateTime)

Source:
SQLDateTime.cs
Source:
SQLDateTime.cs
Source:
SQLDateTime.cs

Converts the SqlDateTime structure to a DateTime structure.

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

Parameters

x
SqlDateTime

A SqlDateTime structure.

Returns

A DateTime object whose Date and TimeOfDay properties contain the same date and time values as the Value property of the supplied SqlDateTime structure.

Remarks

The equivalent method for this operator is SqlDateTime.Value

See also

Applies to

Explicit(SqlString to SqlDateTime)

Source:
SQLDateTime.cs
Source:
SQLDateTime.cs
Source:
SQLDateTime.cs

Converts the SqlString parameter to a 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

Parameters

Returns

A SqlDateTime structure whose Value is equal to the date and time represented by the SqlString parameter. If the SqlString is null, the Value of the newly created SqlDateTime structure will be null.

See also

Applies to