DataType 建構函式 (SqlDataType, String, String)
Initializes a new instance of the DataType class based on a specified SQL Server data type with the specified type and schema.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub New ( _
sqlDataType As SqlDataType, _
type As String, _
schema As String _
)
'用途
Dim sqlDataType As SqlDataType
Dim type As String
Dim schema As String
Dim instance As New DataType(sqlDataType, _
type, schema)
public DataType(
SqlDataType sqlDataType,
string type,
string schema
)
public:
DataType(
SqlDataType sqlDataType,
String^ type,
String^ schema
)
new :
sqlDataType:SqlDataType *
type:string *
schema:string -> DataType
public function DataType(
sqlDataType : SqlDataType,
type : String,
schema : 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.
- schema
型別:System. . :: . .String
A String value that specifies the schema of the 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]::