SqlDateTime.Addition Operator (SqlDateTime, TimeSpan)

 

Adds the period of time indicated by the supplied TimeSpan parameter, t, to the supplied SqlDateTime structure.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

public static SqlDateTime operator +(
	SqlDateTime x,
	TimeSpan t
)

Parameters

x
Type: System.Data.SqlTypes.SqlDateTime

A SqlDateTime structure.

t
Type: System.TimeSpan

A TimeSpan structure.

Return Value

Type: System.Data.SqlTypes.SqlDateTime

A new SqlDateTime. If either argument is Null, the new Value is Null.

.NET Framework
Available since 1.1
Return to top
Show: