DateTime2 メソッド
DateTime2 は、既存の DATETIME 型の拡張です。DateTime2 では、日付範囲と既定の有効桁数が大きくなります。長さは 19 文字以上です。
名前空間: Microsoft.SqlServer.Management.Smo
アセンブリ: Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)
構文
'宣言
Public Shared Function DateTime2 ( _
scale As Integer _
) As DataType
'使用
Dim scale As Integer
Dim returnValue As DataType
returnValue = DataType.DateTime2(scale)
public static DataType DateTime2(
int scale
)
public:
static DataType^ DateTime2(
int scale
)
static member DateTime2 :
scale:int -> DataType
public static function DateTime2(
scale : int
) : DataType
パラメーター
- scale
型: System. . :: . .Int32
Int32
戻り値
型: Microsoft.SqlServer.Management.Smo. . :: . .DataType
データ型の DateTime2 定義を示す DataType オブジェクト値です。
説明
返される DateTime2 オブジェクト コンストラクタは、DateTime2 オブジェクトの有効桁数を決定する小数点以下桁数の値で初期化されます。