共用方式為


IRowSetMetaData.SetColumnLabel(Int32, String) Method

Definition

Sets the suggested column title for use in printouts and displays, if any, to the given String.

[Android.Runtime.Register("setColumnLabel", "(ILjava/lang/String;)V", "GetSetColumnLabel_ILjava_lang_String_Handler:Javax.Sql.IRowSetMetaDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetColumnLabel (int columnIndex, string? label);
[<Android.Runtime.Register("setColumnLabel", "(ILjava/lang/String;)V", "GetSetColumnLabel_ILjava_lang_String_Handler:Javax.Sql.IRowSetMetaDataInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetColumnLabel : int * string -> unit

Parameters

columnIndex
Int32

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

label
String

the column title

Attributes

Exceptions

if a problem occurs accessing the database.

Remarks

Sets the suggested column title for use in printouts and displays, if any, to the given String.

Java documentation for javax.sql.RowSetMetaData.setColumnLabel(int, java.lang.String).

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