Share via


SqlDataRecord.GetDateTimeOffset(Int32) Method

Definition

Returns the specified column's data as a DateTimeOffset.

public:
 virtual DateTimeOffset GetDateTimeOffset(int ordinal);
public virtual DateTimeOffset GetDateTimeOffset (int ordinal);
abstract member GetDateTimeOffset : int -> DateTimeOffset
override this.GetDateTimeOffset : int -> DateTimeOffset
Public Overridable Function GetDateTimeOffset (ordinal As Integer) As DateTimeOffset

Parameters

ordinal
Int32

The zero-based column ordinal.

Returns

The value of the specified column as a DateTimeOffset.

Applies to