DataType 생성자 (SqlDataType)

Initializes a new instance of the DataType class based on a specified SQL Server data type.

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

구문

‘선언
Public Sub New ( _
    sqlDataType As SqlDataType _
)
‘사용 방법
Dim sqlDataType As SqlDataType 

Dim instance As New DataType(sqlDataType)
public DataType(
    SqlDataType sqlDataType
)
public:
DataType(
    SqlDataType sqlDataType
)
new : 
        sqlDataType:SqlDataType -> DataType
public function DataType(
    sqlDataType : SqlDataType
)

매개 변수

Visual Basic

Dim dt As DataType
dt = New DataType(SqlDataType.Int)

PowerShell

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

참고 항목

참조

DataType 클래스

DataType 오버로드

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