SqlDataRecord.SetTimeSpan(Int32, TimeSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the value of the column specified to the TimeSpan.
public:
virtual void SetTimeSpan(int ordinal, TimeSpan value);
public virtual void SetTimeSpan (int ordinal, TimeSpan value);
abstract member SetTimeSpan : int * TimeSpan -> unit
override this.SetTimeSpan : int * TimeSpan -> unit
Public Overridable Sub SetTimeSpan (ordinal As Integer, value As TimeSpan)
Parameters
- ordinal
- Int32
The zero-based ordinal of the column.
- value
- TimeSpan
The new value of the column.
Exceptions
The ordinal
passed in is a negative number.
The TimeSpan value passed in is greater than 24 hours in length.