







![]() ![]() |
MySQL Connector/Net |
MySqlDataReader..::..GetTimeSpan Method (String) |
MySqlDataReader Class See Also Send Feedback |
![]() |
Gets the value of the specified column as a TimeSpan object.
Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.8.4.0
Syntax
C# |
---|
public TimeSpan GetTimeSpan( string column ) |
Visual Basic |
---|
Public Function GetTimeSpan ( _ column As String _ ) As TimeSpan |
Visual C++ |
---|
public: TimeSpan GetTimeSpan( String^ column ) |
Parameters
- column
- Type: System..::..String
The zero-based column ordinal or column name.
Return Value
The value of the specified column.
Remarks
No conversions are performed; therefore, the data retrieved must already be a Time value.
Call IsDBNull to check for null values before calling this method.