DataType Constructor (SqlDataType, Int32, Int32)

Initializes a new instance of the DataType class based on a specified Microsoft SQL Server data type with the specified precision and scale.

Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
Public Sub New ( _
    sqlDataType As SqlDataType, _
    precision As Integer, _
    scale As Integer _
)
public DataType (
    SqlDataType sqlDataType,
    int precision,
    int scale
)
public:
DataType (
    SqlDataType sqlDataType, 
    int precision, 
    int scale
)
public DataType (
    SqlDataType sqlDataType, 
    int precision, 
    int scale
)
public function DataType (
    sqlDataType : SqlDataType, 
    precision : int, 
    scale : int
)

Параметры

  • sqlDataType
    A SqlDataType object value that specifies the SQL Server data type.
  • precision
    An Int32 value that specifies the precision for numeric SQL Server data types.
  • scale
    An Int32 value that specifies the scale for numeric SQL Server data types.

Замечания

Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.

Пример

How to: Construct a DataType Object by Using the Default Constructor in Visual Basic .NET

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

DataType Class
DataType Members
Microsoft.SqlServer.Management.Smo Namespace

Другие ресурсы

Working with Data Types