SQLiteRawStatement.GetColumnLength(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.
Return the length of the column value in the result row.
[Android.Runtime.Register("getColumnLength", "(I)I", "", ApiSince=35)]
public int GetColumnLength (int columnIndex);
[<Android.Runtime.Register("getColumnLength", "(I)I", "", ApiSince=35)>]
member this.GetColumnLength : int -> int
Parameters
- columnIndex
- Int32
The index of a column in the result row. It is zero-based.
Returns
The length, in bytes, of the value in the column.
- Attributes
Remarks
Return the length of the column value in the result row. Column indices start at 0. This returns 0 for a null and number of bytes for text or blob. Numeric values are converted to a string and the length of the string is returned. See the sqlite documentation for details. Note that this cannot be used to distinguish a null value from an empty text or blob. Note that this returns the number of bytes in the text value, not the number of characters.
Java documentation for android.database.sqlite.SQLiteRawStatement.getColumnLength(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.