Construtor DataType (SqlDataType)
Initializes a new instance of the DataType class based on a specified SQL Server data type.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Public Sub New ( _
sqlDataType As SqlDataType _
)
'Uso
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
)
Parâmetros
- sqlDataType
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .SqlDataType
A SqlDataType object variable that specifies the SQL Server system data type.
Exemplos
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)
Consulte também