DataType.DateTimeOffset 메서드

Returns values for year, month, day, valid time of day between 00:00:00 and 23:59:59:9999999 and offset, in hours, from UTC. It has a length of at least 25 positions.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)


Public Shared Function DateTimeOffset ( _
    scale As Integer _
) As DataType
‘사용 방법
Dim scale As Integer 
Dim returnValue As DataType 

returnValue = DataType.DateTimeOffset(scale)
public static DataType DateTimeOffset(
    int scale
static DataType^ DateTimeOffset(
    int scale
static member DateTimeOffset : 
        scale:int -> DataType
public static function DateTimeOffset(
    scale : int
) : DataType

매개 변수

반환 값

유형: Microsoft.SqlServer.Management.Smo.DataType
A DataType object value that specifies a DateTimeOffset definition in the data type.


The DateTimeOffset object constructor is initialized with the scale value that determines the precision of the DateTimeOffset object.

Visual Basic

Dim dt As DataType
dt = New DataType(SqlDataType.DateTimeOffset, 25)


$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::DateTimeOffset, 25)

참고 항목


DataType 클래스

Microsoft.SqlServer.Management.Smo 네임스페이스