DB2UpdatableRecord.GetTimeSpan Method
Gets the value of the specified column as a TimeSpan object.
- Namespace:
IBM.Data.DB2
- Assembly:
IBM.Data.DB2
(inIBM.Data.DB2.dll
)
Syntax
[Visual Basic]
Public Function GetTimeSpan( _
ByVal i As Integer _
) As TimeSpan
[C#]
public TimeSpan GetTimeSpan(
int i
);
[C++]
public: TimeSpan GetTimeSpan(
int i
);
[JScript]
public function GetTimeSpan(
i : int
) : TimeSpan;
Parameters
- i
- The zero-based column ordinal.
Exceptions
Exception type | Condition |
---|---|
DB2Exception | Invalid conversion. |
Remarks
No conversions are performed. The data to be retrieved must be of DB2Type.Time.
The following
table describes the mapping between the return object data type and
the data server data type.
DB2®Type Data Type | Db2® Data Type | Informix® Data Type |
---|---|---|
Time | TIME | DATETIME (time precision) |