IParameterMetaData.GetPrecision(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the designated parameter's specified column size.
[Android.Runtime.Register("getPrecision", "(I)I", "GetGetPrecision_IHandler:Java.Sql.IParameterMetaDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int GetPrecision (int param);
[<Android.Runtime.Register("getPrecision", "(I)I", "GetGetPrecision_IHandler:Java.Sql.IParameterMetaDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetPrecision : int -> int
Parameters
- param
- Int32
the first parameter is 1, the second is 2, ...
Returns
precision
- Attributes
Exceptions
if a database error happens.
Remarks
Retrieves the designated parameter's specified column size.
The returned value represents the maximum column size for the given parameter. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. 0 is returned for data types where the column size is not applicable.
Added in 1.4.
Java documentation for java.sql.ParameterMetaData.getPrecision(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.