SqlDateTime.Value Property


Gets the value of the SqlDateTime structure. This property is read-only.

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

public DateTime Value { get; }

Property Value

Type: System.DateTime

The value of this SqlDateTime structure.

Exception Condition

The exception that is thrown when the Value property of a System.Data.SqlTypes structure is set to null.

.NET Framework
Available since 1.1
Return to top