SqlDateTime.Value SqlDateTime.Value SqlDateTime.Value SqlDateTime.Value Property

定义

获取 SqlDateTime 结构的值。Gets the value of the SqlDateTime structure. 此属性是只读的。This property is read-only.

public:
 property DateTime Value { DateTime get(); };
public DateTime Value { get; }
member this.Value : DateTime
Public ReadOnly Property Value As DateTime

属性值

SqlDateTime 结构的值。The value of this SqlDateTime structure.

异常

Value 结构的 System.Data.SqlTypes 属性设置为 null 时所引发的异常。The exception that is thrown when the Value property of a System.Data.SqlTypes structure is set to null.

适用于

另请参阅