SqlDateTime Конструкторы
Определение
Инициализирует новый экземпляр структуры SqlDateTime.Initializes a new instance of the SqlDateTime structure.
Перегрузки
SqlDateTime(DateTime) |
Инициализирует новый экземпляр структуры SqlDateTime с использованием заданного значения DateTime.Initializes a new instance of the SqlDateTime structure using the specified DateTime value. |
SqlDateTime(Int32, Int32) |
Выполняет инициализацию нового экземпляра структуры SqlDateTime с использованием предоставленных параметров.Initializes a new instance of the SqlDateTime structure using the supplied parameters. |
SqlDateTime(Int32, Int32, Int32) |
Инициализирует новый экземпляр структуры SqlDateTime с использованием предоставленных параметров для инициализации года, месяца, дня.Initializes a new instance of the SqlDateTime structure using the supplied parameters to initialize the year, month, day. |
SqlDateTime(Int32, Int32, Int32, Int32, Int32, Int32) |
Выполняет инициализацию нового экземпляра структуры SqlDateTime с помощью предоставленных параметров для инициализации года, месяца, дня, часа, минуты и секунды новой структуры.Initializes a new instance of the SqlDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, and second of the new structure. |
SqlDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Double) |
Выполняет инициализацию нового экземпляра структуры SqlDateTime с помощью предоставленных параметров для инициализации года, месяца, дня, часа, минуты, секунды и миллисекунды новой структуры.Initializes a new instance of the SqlDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, second, and millisecond of the new structure. |
SqlDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
Выполняет инициализацию нового экземпляра структуры SqlDateTime с помощью предоставленных параметров для инициализации года, месяца, дня, часа, минуты, секунды и микросекунды новой структуры.Initializes a new instance of the SqlDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, second, and microsecond of the new structure. |
SqlDateTime(DateTime)
Инициализирует новый экземпляр структуры SqlDateTime с использованием заданного значения DateTime.Initializes a new instance of the SqlDateTime structure using the specified DateTime value.
public:
SqlDateTime(DateTime value);
public SqlDateTime (DateTime value);
new System.Data.SqlTypes.SqlDateTime : DateTime -> System.Data.SqlTypes.SqlDateTime
Public Sub New (value As DateTime)
Параметры
- value
- DateTime
Структура DateTime
.A DateTime
structure.
Дополнительно
SqlDateTime(Int32, Int32)
Выполняет инициализацию нового экземпляра структуры SqlDateTime с использованием предоставленных параметров.Initializes a new instance of the SqlDateTime structure using the supplied parameters.
public:
SqlDateTime(int dayTicks, int timeTicks);
public SqlDateTime (int dayTicks, int timeTicks);
new System.Data.SqlTypes.SqlDateTime : int * int -> System.Data.SqlTypes.SqlDateTime
Public Sub New (dayTicks As Integer, timeTicks As Integer)
Параметры
- dayTicks
- Int32
Целое значение, представляющее дату как число импульсов.An integer value that represents the date as ticks.
- timeTicks
- Int32
Целое значение, представляющее время как число импульсов.An integer value that represents the time as ticks.
Дополнительно
SqlDateTime(Int32, Int32, Int32)
Инициализирует новый экземпляр структуры SqlDateTime с использованием предоставленных параметров для инициализации года, месяца, дня.Initializes a new instance of the SqlDateTime structure using the supplied parameters to initialize the year, month, day.
public:
SqlDateTime(int year, int month, int day);
public SqlDateTime (int year, int month, int day);
new System.Data.SqlTypes.SqlDateTime : int * int * int -> System.Data.SqlTypes.SqlDateTime
Public Sub New (year As Integer, month As Integer, day As Integer)
Параметры
- year
- Int32
Целое число, представляющее год в новой структуре SqlDateTime.An integer representing the year of the of the new SqlDateTime structure.
- month
- Int32
Целое число, представляющее месяц в новой структуре SqlDateTime.An integer value representing the month of the new SqlDateTime structure.
- day
- Int32
Целое значение, представляющее номер дня в новой структуре SqlDateTime.An integer value representing the day number of the new SqlDateTime structure.
Дополнительно
SqlDateTime(Int32, Int32, Int32, Int32, Int32, Int32)
Выполняет инициализацию нового экземпляра структуры SqlDateTime с помощью предоставленных параметров для инициализации года, месяца, дня, часа, минуты и секунды новой структуры.Initializes a new instance of the SqlDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, and second of the new structure.
public:
SqlDateTime(int year, int month, int day, int hour, int minute, int second);
public SqlDateTime (int year, int month, int day, int hour, int minute, int second);
new System.Data.SqlTypes.SqlDateTime : int * int * int * int * int * int -> System.Data.SqlTypes.SqlDateTime
Public Sub New (year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer)
Параметры
- year
- Int32
Целое число, представляющее год в новой структуре SqlDateTime.An integer value representing the year of the new SqlDateTime structure.
- month
- Int32
Целое число, представляющее месяц в новой структуре SqlDateTime.An integer value representing the month of the new SqlDateTime structure.
- day
- Int32
Целое число, представляющее день месяца в новой структуре SqlDateTime.An integer value representing the day of the month of the new SqlDateTime structure.
- hour
- Int32
Целое число, представляющее час в новой структуре SqlDateTime.An integer value representing the hour of the new SqlDateTime structure.
- minute
- Int32
Целое число, представляющее минуту в новой структуре SqlDateTime.An integer value representing the minute of the new SqlDateTime structure.
- second
- Int32
Целое число, представляющее секунду в новой структуре SqlDateTime.An integer value representing the second of the new SqlDateTime structure.
Дополнительно
SqlDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Double)
Выполняет инициализацию нового экземпляра структуры SqlDateTime с помощью предоставленных параметров для инициализации года, месяца, дня, часа, минуты, секунды и миллисекунды новой структуры.Initializes a new instance of the SqlDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, second, and millisecond of the new structure.
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);
new System.Data.SqlTypes.SqlDateTime : int * int * int * int * int * int * double -> System.Data.SqlTypes.SqlDateTime
Public Sub New (year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, millisecond As Double)
Параметры
- year
- Int32
Целое число, представляющее год в новой структуре SqlDateTime.An integer value representing the year of the new SqlDateTime structure.
- month
- Int32
Целое число, представляющее месяц в новой структуре SqlDateTime.An integer value representing the month of the new SqlDateTime structure.
- day
- Int32
Целое число, представляющее день месяца в новой структуре SqlDateTime.An integer value representing the day of the month of the new SqlDateTime structure.
- hour
- Int32
Целое число, представляющее час в новой структуре SqlDateTime.An integer value representing the hour of the new SqlDateTime structure.
- minute
- Int32
Целое число, представляющее минуту в новой структуре SqlDateTime.An integer value representing the minute of the new SqlDateTime structure.
- second
- Int32
Целое число, представляющее секунду в новой структуре SqlDateTime.An integer value representing the second of the new SqlDateTime structure.
- millisecond
- Double
Значение типа double, представляющее миллисекунду в новой структуре SqlDateTime.An double value representing the millisecond of the new SqlDateTime structure.
Дополнительно
SqlDateTime(Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Выполняет инициализацию нового экземпляра структуры SqlDateTime с помощью предоставленных параметров для инициализации года, месяца, дня, часа, минуты, секунды и микросекунды новой структуры.Initializes a new instance of the SqlDateTime structure using the supplied parameters to initialize the year, month, day, hour, minute, second, and microsecond of the new structure.
public:
SqlDateTime(int year, int month, int day, int hour, int minute, int second, int bilisecond);
public SqlDateTime (int year, int month, int day, int hour, int minute, int second, int bilisecond);
new System.Data.SqlTypes.SqlDateTime : int * int * int * int * int * int * int -> System.Data.SqlTypes.SqlDateTime
Public Sub New (year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, bilisecond As Integer)
Параметры
- year
- Int32
Целое число, представляющее год в новой структуре SqlDateTime.An integer value representing the year of the new SqlDateTime structure.
- month
- Int32
Целое число, представляющее месяц в новой структуре SqlDateTime.An integer value representing the month of the new SqlDateTime structure.
- day
- Int32
Целое значение, представляющее день в новой структуре SqlDateTime.An integer value representing the day of the new SqlDateTime structure.
- hour
- Int32
Целое число, представляющее час в новой структуре SqlDateTime.An integer value representing the hour of the new SqlDateTime structure.
- minute
- Int32
Целое число, представляющее минуту в новой структуре SqlDateTime.An integer value representing the minute of the new SqlDateTime structure.
- second
- Int32
Целое число, представляющее секунду в новой структуре SqlDateTime.An integer value representing the second of the new SqlDateTime structure.
- bilisecond
- Int32
Целое число, представляющее микросекунду (одну тысячную миллисекунды) в новой структуре SqlDateTime.An integer value representing the microsecond (thousandths of a millisecond) of the new SqlDateTime structure.