Costruttore DataType (SqlDataType)
Initializes a new instance of the DataType class based on a specified SQL Server data type.
Spazio dei nomi Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
Public Sub New ( _
sqlDataType As SqlDataType _
)
'Utilizzo
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
)
Parametri
- sqlDataType
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .SqlDataType
A SqlDataType object variable that specifies the SQL Server system data type.
Esempi
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)
Vedere anche