Partager via


DataType.Decimal Method

Returns an object that represents the specified type.

Espace de noms: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntaxe

'Déclaration
Public Shared Function Decimal ( _
    scale As Integer, _
    precision As Integer _
) As DataType
public static DataType Decimal (
    int scale,
    int precision
)
public:
static DataType^ Decimal (
    int scale, 
    int precision
)
public static DataType Decimal (
    int scale, 
    int precision
)
public static function Decimal (
    scale : int, 
    precision : int
) : DataType

Paramètres

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

Valeur de retour

A DataType value object.

Notes

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.

Exemple

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

Sécurité des threads

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.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

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

Autres ressources

Working with Data Types