SqlDateTime.ToSqlString SqlDateTime.ToSqlString SqlDateTime.ToSqlString SqlDateTime.ToSqlString Method

定义

将此 SqlDateTime 结构转换为 SqlStringConverts this SqlDateTime structure to SqlString.

public:
 System::Data::SqlTypes::SqlString ToSqlString();
public System.Data.SqlTypes.SqlString ToSqlString ();
member this.ToSqlString : unit -> System.Data.SqlTypes.SqlString
Public Function ToSqlString () As SqlString

返回

一个 SqlString 结构,其值是表示此 SqlDateTime 结构中包含的日期和时间的字符串。A SqlString structure whose value is a string representing the date and time that is contained in this SqlDateTime structure.

适用于

另请参阅