次の方法で共有


ICursor.CopyStringToBuffer(Int32, CharArrayBuffer) Method

Definition

Retrieves the requested column text and stores it in the buffer provided.

[Android.Runtime.Register("copyStringToBuffer", "(ILandroid/database/CharArrayBuffer;)V", "GetCopyStringToBuffer_ILandroid_database_CharArrayBuffer_Handler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void CopyStringToBuffer (int columnIndex, Android.Database.CharArrayBuffer? buffer);
[<Android.Runtime.Register("copyStringToBuffer", "(ILandroid/database/CharArrayBuffer;)V", "GetCopyStringToBuffer_ILandroid_database_CharArrayBuffer_Handler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member CopyStringToBuffer : int * Android.Database.CharArrayBuffer -> unit

Parameters

columnIndex
Int32

the zero-based index of the target column. if the target column is null, return buffer

buffer
CharArrayBuffer

the buffer to copy the text into.

Attributes

Remarks

Retrieves the requested column text and stores it in the buffer provided. If the buffer size is not sufficient, a new char buffer will be allocated and assigned to CharArrayBuffer.data

Java documentation for android.database.Cursor.copyStringToBuffer(int, android.database.CharArrayBuffer).

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