DataType 생성자 (SqlDataType, String)
Initializes a new instance of the DataType class based on a specified SQL Server data type with the specified type.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
Public Sub New ( _
sqlDataType As SqlDataType, _
type As String _
)
‘사용 방법
Dim sqlDataType As SqlDataType
Dim type As String
Dim instance As New DataType(sqlDataType, _
type)
public DataType(
SqlDataType sqlDataType,
string type
)
public:
DataType(
SqlDataType sqlDataType,
String^ type
)
new :
sqlDataType:SqlDataType *
type:string -> DataType
public function DataType(
sqlDataType : SqlDataType,
type : String
)
매개 변수
- sqlDataType
유형: Microsoft.SqlServer.Management.Smo. . :: . .SqlDataType
A SqlDataType object value that specifies the SQL Server data type.
- type
유형: System. . :: . .String
A String value that specifies the type of data type.
예
Visual Basic
'Declare and create a DataType object variable.
Dim dt As DataType
dt = New DataType(SqlDataType.
PowerShell
$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::