London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class DataRowExtensions

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Inheritance
System.Object
DataRowExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Data.Provider.Internal.Extensions
Assembly: Mediachase.DataProvider.dll
Version: 13.30.0
Syntax
public static class DataRowExtensions

Methods

GetDateTimeUtc(DataRow, String)

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Gets a data row value as a DateTime with DateTimeKind.Utc by specifying the kind or converting if the kind is specified.

Declaration
public static DateTime? GetDateTimeUtc(this DataRow row, string columnName)
Parameters
Type Name Description
System.Data.DataRow row

The data row.

System.String columnName

The column to read.

Returns
Type Description
System.Nullable<System.DateTime>

The DateTime value, or null if the column value was null or DBNull.