SqlDataRecord.SetTimeSpan(Int32, TimeSpan) Method

Definition

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.

Applies to