SqlDateTime.Addition Operator (SqlDateTime, TimeSpan)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: