Compartir a través de


SqlCeUpdatableRecord.GetChars Método

Copia una serie de caracteres char en el búfer, empezando en una posición especificada del campo especificado.

Espacio de nombres:  System.Data.SqlServerCe
Ensamblado:  System.Data.SqlServerCe (en System.Data.SqlServerCe.dll)

Sintaxis

'Declaración
Public Function GetChars ( _
    ordinal As Integer, _
    dataIndex As Long, _
    buffer As Char(), _
    bufferIndex As Integer, _
    length As Integer _
) As Long
'Uso
Dim instance As SqlCeUpdatableRecord
Dim ordinal As Integer
Dim dataIndex As Long
Dim buffer As Char()
Dim bufferIndex As Integer
Dim length As Integer
Dim returnValue As Long

returnValue = instance.GetChars(ordinal, _
    dataIndex, buffer, bufferIndex, length)
public long GetChars(
    int ordinal,
    long dataIndex,
    char[] buffer,
    int bufferIndex,
    int length
)
public:
virtual long long GetChars(
    int ordinal, 
    long long dataIndex, 
    array<wchar_t>^ buffer, 
    int bufferIndex, 
    int length
) sealed
abstract GetChars : 
        ordinal:int * 
        dataIndex:int64 * 
        buffer:char[] * 
        bufferIndex:int * 
        length:int -> int64 
override GetChars : 
        ordinal:int * 
        dataIndex:int64 * 
        buffer:char[] * 
        bufferIndex:int * 
        length:int -> int64 
public final function GetChars(
    ordinal : int, 
    dataIndex : long, 
    buffer : char[], 
    bufferIndex : int, 
    length : int
) : long

Parámetros

  • ordinal
    Tipo: System.Int32
    Posición ordinal del campo del que se van a recuperar datos.
  • dataIndex
    Tipo: System.Int64
    Desplazamiento (en caracteres) dentro del campo a partir del cual se van a empezar a copiar datos.
  • buffer
    Tipo: array<System.Char[]
    Búfer en el que se van a copiar los datos.
  • bufferIndex
    Tipo: System.Int32
    El desplazamiento en el búfer a partir del cual se inicia la copia.
  • length
    Tipo: System.Int32
    Número máximo de bytes que se van a copiar.

Valor devuelto

Tipo: System.Int64

Implementa

IDataRecord.GetChars(Int32, Int64, array<Char[], Int32, Int32)

Vea también

Referencia

SqlCeUpdatableRecord Clase

Espacio de nombres System.Data.SqlServerCe