DataType 建構 (SqlDataType, Int32)
Initializes a new instance of the DataType class based on a specified SQL Server data type with specified precision or maximum length.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub New ( _
sqlDataType As SqlDataType, _
precisionOrMaxLengthOrScale As Integer _
)
'用途
Dim sqlDataType As SqlDataType
Dim precisionOrMaxLengthOrScale As Integer
Dim instance As New DataType(sqlDataType, _
precisionOrMaxLengthOrScale)
public DataType(
SqlDataType sqlDataType,
int precisionOrMaxLengthOrScale
)
public:
DataType(
SqlDataType sqlDataType,
int precisionOrMaxLengthOrScale
)
new :
sqlDataType:SqlDataType *
precisionOrMaxLengthOrScale:int -> DataType
public function DataType(
sqlDataType : SqlDataType,
precisionOrMaxLengthOrScale : int
)
參數
- sqlDataType
型別:Microsoft.SqlServer.Management.Smo. . :: . .SqlDataType
A SqlDataType object value that specifies the SQL Server data type.
- precisionOrMaxLengthOrScale
型別:System. . :: . .Int32