다음을 통해 공유


IRowSetMetaData.SetPrecision(Int32, Int32) Method

Definition

Sets the designated column's number of decimal digits to the given int.

[Android.Runtime.Register("setPrecision", "(II)V", "GetSetPrecision_IIHandler:Javax.Sql.IRowSetMetaDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetPrecision (int columnIndex, int precision);
[<Android.Runtime.Register("setPrecision", "(II)V", "GetSetPrecision_IIHandler:Javax.Sql.IRowSetMetaDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetPrecision : int * int -> unit

Parameters

columnIndex
Int32

the first column is 1, the second is 2, ...

precision
Int32

the total number of decimal digits

Attributes

Exceptions

if a problem occurs accessing the database.

Remarks

Sets the designated column's number of decimal digits to the given int.

Java documentation for javax.sql.RowSetMetaData.setPrecision(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to