Поделиться через


DataType.Numeric Method

Returns an object that represents the specified type.

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

Синтаксис

'Декларация
Public Shared Function Numeric ( _
    scale As Integer, _
    precision As Integer _
) As DataType
public static DataType Numeric (
    int scale,
    int precision
)
public:
static DataType^ Numeric (
    int scale, 
    int precision
)
public static DataType Numeric (
    int scale, 
    int precision
)
public static function Numeric (
    scale : int, 
    precision : int
) : DataType

Параметры

  • scale
    An Int32 value that specifies the scale.
  • precision
    An Int32 value that specifies the precision.

Возвращаемое значение

A DataType object value.

Замечания

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

Пример

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

Синхронизация потоков

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Платформы

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

Список поддерживаемых платформ см. в разделе 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