共用方式為


DataType 建構函式

包含保護的成員
包含繼承的成員

Initializes a new instance of the DataType class.

此成員已超載。如需此成員完整的詳細資訊 (包括語法、使用狀況及範例),按一下多載清單中的名稱。

多載 清單

  名稱 說明
公用方法 DataType() Initializes a new instance of the DataType class.
公用方法 DataType(SqlDataType) Initializes a new instance of the DataType class based on a specified SQL Server data type.
公用方法 DataType(UserDefinedDataType) Initializes a new instance of the DataType class based on a specified user-defined data type.
公用方法 DataType(UserDefinedTableType) Initializes a new instance of the DataType class based on a specified user-defined table type.
公用方法 DataType(UserDefinedType) Initializes a new instance of the DataType class based on a specified user-defined type.
公用方法 DataType(XmlSchemaCollection) Initializes a new instance of the DataType class based on a specified XML schema collection.
公用方法 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.
公用方法 DataType(SqlDataType, String) Initializes a new instance of the DataType class based on a specified SQL Server data type with the specified type.
公用方法 DataType(SqlDataType, Int32, Int32) Initializes a new instance of the DataType class based on a specified SQL Server data type with the specified precision and scale.
公用方法 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.

上層

請參閱

參考

DataType 類別

Microsoft.SqlServer.Management.Smo 命名空間