次の方法で共有


SqlDateTime コンストラクタ (Int32, Int32, Int32, Int32, Int32, Int32, Double)

新しい構造体の年、月、日、時、分、秒、ミリ秒を初期化するパラメータを指定して、SqlDateTime 構造体の新しいインスタンスを初期化します。

名前空間: System.Data.SqlTypes
アセンブリ: System.Data (system.data.dll 内)

構文

'宣言
Public Sub New ( _
    year As Integer, _
    month As Integer, _
    day As Integer, _
    hour As Integer, _
    minute As Integer, _
    second As Integer, _
    millisecond As Double _
)
'使用
Dim year As Integer
Dim month As Integer
Dim day As Integer
Dim hour As Integer
Dim minute As Integer
Dim second As Integer
Dim millisecond As Double

Dim instance As New SqlDateTime(year, month, day, hour, minute, second, millisecond)
public SqlDateTime (
    int year,
    int month,
    int day,
    int hour,
    int minute,
    int second,
    double millisecond
)
public:
SqlDateTime (
    int year, 
    int month, 
    int day, 
    int hour, 
    int minute, 
    int second, 
    double millisecond
)
public SqlDateTime (
    int year, 
    int month, 
    int day, 
    int hour, 
    int minute, 
    int second, 
    double millisecond
)
public function SqlDateTime (
    year : int, 
    month : int, 
    day : int, 
    hour : int, 
    minute : int, 
    second : int, 
    millisecond : double
)

パラメータ

  • year
    新しい SqlDateTime 構造体の年を表す整数値。
  • month
    新しい SqlDateTime 構造体の月を表す整数値。
  • day
    新しい SqlDateTime 構造体の月の日付を表す整数値。
  • hour
    新しい SqlDateTime 構造体の時間を表す整数値。
  • minute
    新しい SqlDateTime 構造体の分を表す整数値。
  • second
    新しい SqlDateTime 構造体の秒を表す整数値。
  • millisecond
    新しい SqlDateTime 構造体のミリ秒を表す double 型の値。

プラットフォーム

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 2.0、1.1、1.0

.NET Compact Framework

サポート対象 : 2.0、1.0

参照

関連項目

SqlDateTime 構造体
SqlDateTime メンバ
System.Data.SqlTypes 名前空間

その他の技術情報

SqlTypes の使用