Compartir a través de


NumericPrecision Propiedad

Gets or sets the maximum number of digits in a numeric value used in the definition of the user-defined data type.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Property NumericPrecision As Integer
    Get
    Set
'Uso
Dim instance As UserDefinedDataType
Dim value As Integer

value = instance.NumericPrecision

instance.NumericPrecision = value
[SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)]
public int NumericPrecision { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::ReadOnlyAfterCreation)]
public:
property int NumericPrecision {
    int get ();
    void set (int value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)>]
member NumericPrecision : int with get, set
function get NumericPrecision () : int
function set NumericPrecision (value : int)

Valor de la propiedad

Tipo: System. . :: . .Int32
A Byte value that specifies the numerical precision of the user-defined data type.

Notas

Numerical precision specifies the number of digits in a number. For example, the number 123.45 has a numerical precision of 5.

The numerical precision cannot be set to a value greater than the MaxLength property value.