SqlDateTime.Value 屬性

定義

取得 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.

適用於

另請參閱