IResultSetMetaData.GetColumnLabel(Int32) Method

Definition

Gets the designated column's suggested title for use in printouts and displays.

[Android.Runtime.Register("getColumnLabel", "(I)Ljava/lang/String;", "GetGetColumnLabel_IHandler:Java.Sql.IResultSetMetaDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetColumnLabel (int column);
[<Android.Runtime.Register("getColumnLabel", "(I)Ljava/lang/String;", "GetGetColumnLabel_IHandler:Java.Sql.IResultSetMetaDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetColumnLabel : int -> string

Parameters

column
Int32

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

Returns

the suggested column title

Attributes

Exceptions

if there is a database error.

Remarks

Gets the designated column's suggested title for use in printouts and displays. The suggested title is usually specified by the SQL AS clause. If a SQL AS is not specified, the value returned from getColumnLabel will be the same as the value returned by the getColumnName method.

Java documentation for java.sql.ResultSetMetaData.getColumnLabel(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